summaryrefslogtreecommitdiff
path: root/src/avatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/avatar.cpp')
-rw-r--r--src/avatar.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/avatar.cpp b/src/avatar.cpp
index 4fffcc9fa..f2e6bc4ba 100644
--- a/src/avatar.cpp
+++ b/src/avatar.cpp
@@ -52,9 +52,14 @@ Avatar::Avatar(const std::string &name):
std::string Avatar::getComplexName() const
{
if (mName == mOriginalName || mOriginalName.empty())
+ {
return mName;
+ }
else
- return mName + "(" + mOriginalName + ")";
+ {
+ return std::string(mName).append("(").append(
+ mOriginalName).append(")");
+ }
}
std::string Avatar::getAdditionString() const