From c0d5142d1ed98b62ad87603fa9d2620dce256bd7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Sep 2013 19:46:23 +0300 Subject: add consts in gui classes. --- src/commandhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commandhandler.cpp') diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index cc16c267f..a66a9d3e1 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -82,7 +82,7 @@ void CommandHandler::handleCommand(const std::string &command, void CommandHandler::invokeCommand(const std::string &type, const std::string &args, ChatTab *const tab, - const bool warn) + const bool warn) const { const CommandsMapIter it = mCommands.find(type); if (it != mCommands.end()) @@ -103,7 +103,7 @@ void CommandHandler::callFunc(const CommandInfo &info, const std::string &args, ChatTab *const tab) { - CommandFuncPtr func = info.func; + const CommandFuncPtr func = info.func; if (func) func(args, tab); else -- cgit v1.2.3-70-g09d2