diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-16 19:20:30 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-16 19:20:30 +0200 |
commit | 69258182848b2781b0081d82453d33f42dd81679 (patch) | |
tree | 38d64cf8b1884727b941aecb95562f4390ad482b /src/gui/widgets/whispertab.cpp | |
parent | 736795a624ae5f04b11fa284cb8a4b14579c1766 (diff) | |
download | mana-client-69258182848b2781b0081d82453d33f42dd81679.tar.gz mana-client-69258182848b2781b0081d82453d33f42dd81679.tar.bz2 mana-client-69258182848b2781b0081d82453d33f42dd81679.tar.xz mana-client-69258182848b2781b0081d82453d33f42dd81679.zip |
Some cleanups
* std::string arguments to 'const std::string &'
* findMember2 renamed to findOrCreateMember
* Made some functions const
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 975cac94..87a88222 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -43,7 +43,8 @@ WhisperTab::~WhisperTab() chatWindow->removeWhisper(mNick); } -void WhisperTab::handleInput(const std::string &msg) { +void WhisperTab::handleInput(const std::string &msg) +{ if (msg.length() == 0) { chatLog(_("Cannot send empty chat!"), BY_SERVER, false); return; @@ -55,7 +56,7 @@ void WhisperTab::handleInput(const std::string &msg) { msg.c_str()), BY_PLAYER, false); } -void WhisperTab::handleCommand(std::string msg) +void WhisperTab::handleCommand(const std::string &msg) { if (msg == "close") delete this; @@ -68,7 +69,8 @@ void WhisperTab::showHelp() chatLog(_("/close > Close the whisper tab")); } -bool WhisperTab::handleCommand(std::string type, std::string args) +bool WhisperTab::handleCommand(const std::string &type, + const std::string &args) { if (type == "help") { |