summaryrefslogtreecommitdiff
path: root/src/avatar.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
commit6ce49efadfadd8eacb048df274979736bb04daf0 (patch)
tree60d4c2c2a803db003f6fa28e932468e925112580 /src/avatar.cpp
parent466829aef10af6b95d0f443226e8549f4399b567 (diff)
downloadmv-6ce49efadfadd8eacb048df274979736bb04daf0.tar.gz
mv-6ce49efadfadd8eacb048df274979736bb04daf0.tar.bz2
mv-6ce49efadfadd8eacb048df274979736bb04daf0.tar.xz
mv-6ce49efadfadd8eacb048df274979736bb04daf0.zip
Improve string usage in some files.
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