diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-25 03:35:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-25 03:35:52 +0300 |
commit | 8478d540748edccf36dc9bda5f0c3de0aa7bf763 (patch) | |
tree | 941a08937450982abb8781e8dd4bd4bd209cf88c /src/spellmanager.cpp | |
parent | 6ce49efadfadd8eacb048df274979736bb04daf0 (diff) | |
download | manaplus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.gz manaplus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.bz2 manaplus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.xz manaplus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.zip |
Improve string usage in other files.
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r-- | src/spellmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index 93480fb63..77248c68b 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -218,7 +218,7 @@ std::string SpellManager::parseCommand(std::string command, } if (!found && !name.empty()) - command += " " + name; + command.append(" ").append(name); return command; } @@ -385,7 +385,7 @@ std::string SpellManager::autoComplete(std::string partName) if (newName != "" && newCommand && newCommand->getTargetType() == NEEDTARGET) { - return newName + " "; + return newName.append(" "); } return newName; } |