aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-22 15:52:58 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-09-14 17:39:11 (GMT)
commitd21ceb4a235d8f8994390d7bc7611b990e6c0c31 (patch)
tree909bd768f8b9893e0a425d01ef63e10185bfd3ac /src/Keys.cc
parent1f34dee9b3ce82a2b9f3578ecb14ad3c59080c46 (diff)
downloadfluxbox-d21ceb4a235d8f8994390d7bc7611b990e6c0c31.zip
fluxbox-d21ceb4a235d8f8994390d7bc7611b990e6c0c31.tar.bz2
Remove the assignment operator from a regular pointer to a RefCount
it is too easy too shoot yourself in the foot with it, other smart pointers also don't allow such assignments. If you do want to assign to a RefCount pointer, use reset(). ps: assignment between two RefCounts remains possible, of course.
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 0c20f9e..6bb0e42 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -518,7 +518,7 @@ bool Keys::addBinding(const string &linebuffer) {
518 const char *str = FbTk::StringUtil::strcasestr(linebuffer.c_str(), 518 const char *str = FbTk::StringUtil::strcasestr(linebuffer.c_str(),
519 val[argc].c_str()); 519 val[argc].c_str());
520 if (str) // +1 to skip ':' 520 if (str) // +1 to skip ':'
521 current_key->m_command = FbTk::CommandParser<void>::instance().parse(str + 1); 521 current_key->m_command.reset(FbTk::CommandParser<void>::instance().parse(str + 1));
522 522
523 if (!str || current_key->m_command == 0 || mod) { 523 if (!str || current_key->m_command == 0 || mod) {
524 delete first_new_key; 524 delete first_new_key;