summaryrefslogtreecommitdiff
path: root/src/commandhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-18 19:46:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-18 21:52:08 +0300
commitc0d5142d1ed98b62ad87603fa9d2620dce256bd7 (patch)
tree6acc4c089999353ef39c83c3bef34bbf89dbfdd3 /src/commandhandler.h
parente85c6227064c905945a4d49a5e11a0078243a1ac (diff)
downloadplus-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.gz
plus-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.bz2
plus-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.tar.xz
plus-c0d5142d1ed98b62ad87603fa9d2620dce256bd7.zip
add consts in gui classes.
Diffstat (limited to 'src/commandhandler.h')
-rw-r--r--src/commandhandler.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/commandhandler.h b/src/commandhandler.h
index 0954d95c2..725434ef7 100644
--- a/src/commandhandler.h
+++ b/src/commandhandler.h
@@ -70,19 +70,19 @@ class CommandHandler final
void invokeCommand(const std::string &type,
const std::string &args,
ChatTab *const tab,
- const bool warn = false);
+ const bool warn = false) const;
- void invokeCommand(const int type);
+ static void invokeCommand(const int type);
- void invokeCommand(const int type,
- const std::string &args,
- ChatTab *const tab);
+ static void invokeCommand(const int type,
+ const std::string &args,
+ ChatTab *const tab);
- void invokeCommand(const int type,
- const std::string &args);
+ static void invokeCommand(const int type,
+ const std::string &args);
- void invokeCommand(const int type,
- ChatTab *const tab);
+ static void invokeCommand(const int type,
+ ChatTab *const tab);
protected:
friend class ChatTab;
@@ -90,9 +90,9 @@ class CommandHandler final
CommandsMap mCommands;
private:
- void callFunc(const CommandInfo &info,
- const std::string &args,
- ChatTab *const tab);
+ static void callFunc(const CommandInfo &info,
+ const std::string &args,
+ ChatTab *const tab);
};
extern CommandHandler *commandHandler;