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/net/ea/gui | |
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/net/ea/gui')
-rw-r--r-- | src/net/ea/gui/partytab.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/gui/partytab.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp index e9651af9..b37105e9 100644 --- a/src/net/ea/gui/partytab.cpp +++ b/src/net/ea/gui/partytab.cpp @@ -55,7 +55,7 @@ void PartyTab::showHelp() chatLog(_("/leave > Leave the party you are in")); } -bool PartyTab::handleCommand(std::string type, std::string args) +bool PartyTab::handleCommand(const std::string &type, const std::string &args) { if (type == "help") { diff --git a/src/net/ea/gui/partytab.h b/src/net/ea/gui/partytab.h index fac4061b..1e4b6e0c 100644 --- a/src/net/ea/gui/partytab.h +++ b/src/net/ea/gui/partytab.h @@ -35,7 +35,7 @@ class PartyTab : public ChatTab void showHelp(); - bool handleCommand(std::string type, std::string args); + bool handleCommand(const std::string &type, const std::string &args); protected: void handleInput(const std::string &msg); |