aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuItem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/MenuItem.cc')
-rw-r--r--src/FbTk/MenuItem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc
index 1e8c8e9..81765b1 100644
--- a/src/FbTk/MenuItem.cc
+++ b/src/FbTk/MenuItem.cc
@@ -37,7 +37,7 @@ void MenuItem::click(int button, int time, unsigned int mods) {
37 if (m_menu && m_close_on_click && (mods & ControlMask) == 0) 37 if (m_menu && m_close_on_click && (mods & ControlMask) == 0)
38 m_menu->hide(); 38 m_menu->hide();
39 // we need a local variable, since the command may destroy this object 39 // we need a local variable, since the command may destroy this object
40 RefCount<Command> tmp(m_command); 40 RefCount<Command<void> > tmp(m_command);
41 tmp->execute(); 41 tmp->execute();
42 } 42 }
43} 43}