summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 00:01:56 +0300
commit803b6afd00b0e3574b40b866f21a0d3d01f6dc4d (patch)
tree8a55ef881f1eaac4d216b3f5d2c4605eb520070d /src/gui/itempopup.cpp
parent8478d540748edccf36dc9bda5f0c3de0aa7bf763 (diff)
downloadplus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.gz
plus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.bz2
plus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.tar.xz
plus-803b6afd00b0e3574b40b866f21a0d3d01f6dc4d.zip
Improve string usage in other files.
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r--src/gui/itempopup.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp
index b58b245c8..f84a42ce7 100644
--- a/src/gui/itempopup.cpp
+++ b/src/gui/itempopup.cpp
@@ -143,8 +143,8 @@ void ItemPopup::setItem(const ItemInfo &item, const unsigned char color,
{
ResourceManager *const resman = ResourceManager::getInstance();
Image *const image = resman->getImage(combineDye2(
- paths.getStringValue("itemIcons")
- + item.getDisplay().image, item.getDyeColorsString(color)));
+ paths.getStringValue("itemIcons").append(
+ item.getDisplay().image), item.getDyeColorsString(color)));
mIcon->setImage(image);
if (image)
@@ -165,14 +165,14 @@ void ItemPopup::setItem(const ItemInfo &item, const unsigned char color,
if (serverVersion > 0)
{
- mItemName->setCaption(item.getName(color) + _(", ")
- + toString(id));
+ mItemName->setCaption(std::string(item.getName(color)).append(
+ _(", ")).append(toString(id)));
mItemDesc->setTextWrapped(item.getDescription(color), 196);
}
else
{
- mItemName->setCaption(item.getName() + _(", ")
- + toString(id));
+ mItemName->setCaption(std::string(item.getName()).append(
+ _(", ")).append(toString(id)));
mItemDesc->setTextWrapped(item.getDescription(), 196);
}