diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-24 22:59:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-24 22:59:54 +0300 |
commit | 6ce49efadfadd8eacb048df274979736bb04daf0 (patch) | |
tree | 60d4c2c2a803db003f6fa28e932468e925112580 /src/avatar.cpp | |
parent | 466829aef10af6b95d0f443226e8549f4399b567 (diff) | |
download | manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.gz manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.bz2 manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.xz manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.zip |
Improve string usage in some files.
Diffstat (limited to 'src/avatar.cpp')
-rw-r--r-- | src/avatar.cpp | 7 |
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 |