summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp4
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;
}