From 69258182848b2781b0081d82453d33f42dd81679 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 16 Apr 2009 19:20:30 +0200 Subject: Some cleanups * std::string arguments to 'const std::string &' * findMember2 renamed to findOrCreateMember * Made some functions const --- src/gui/widgets/whispertab.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/whispertab.h') diff --git a/src/gui/widgets/whispertab.h b/src/gui/widgets/whispertab.h index 0d39b6ec..af71025b 100644 --- a/src/gui/widgets/whispertab.h +++ b/src/gui/widgets/whispertab.h @@ -36,7 +36,8 @@ class WhisperTab : public ChatTab void showHelp(); - bool handleCommand(std::string type, std::string args); + bool handleCommand(const std::string &type, + const std::string &args); protected: friend class ChatWindow; @@ -52,7 +53,7 @@ class WhisperTab : public ChatTab void handleInput(const std::string &msg); - void handleCommand(std::string msg); + void handleCommand(const std::string &msg); private: std::string mNick; -- cgit v1.2.3-70-g09d2