diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-26 00:01:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-26 00:01:56 +0300 |
commit | 803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (patch) | |
tree | 8a55ef881f1eaac4d216b3f5d2c4605eb520070d /src/gui/npcdialog.cpp | |
parent | 8478d540748edccf36dc9bda5f0c3de0aa7bf763 (diff) | |
download | manaplus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.gz manaplus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.bz2 manaplus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.xz manaplus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.zip |
Improve string usage in other files.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 0fbd52456..c2de9b1ad 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -235,7 +235,7 @@ void NpcDialog::addText(const std::string &text, const bool save) if (mText.size() > 5000) mText.clear(); - mNewText += text; + mNewText.append(text); mTextBox->addRow(text); // setText(mText + text + "\n"); } @@ -413,7 +413,7 @@ void NpcDialog::parseListItems(const std::string &itemString) mItems.push_back(tmp.substr(pos + 1)); Image *const img = resman->getImage( paths.getStringValue("guiIcons") - + tmp.substr(0, pos) + ".png"); + .append(tmp.substr(0, pos)).append(".png")); mImages.push_back(img); } } |