summaryrefslogtreecommitdiff
path: root/src/gui/popups/itempopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-14 23:43:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-14 23:43:54 +0300
commit15a79eee1b3baa91953daf33dc021a1e7c147365 (patch)
tree21fc078237a8c635308c1e84e0bba869918ba3d5 /src/gui/popups/itempopup.cpp
parente1841e31c606f1d97ea54c3f00f3380db814f3d2 (diff)
downloadplus-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.gz
plus-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.bz2
plus-15a79eee1b3baa91953daf33dc021a1e7c147365.tar.xz
plus-15a79eee1b3baa91953daf33dc021a1e7c147365.zip
Change refine type to uint8_t.
Diffstat (limited to 'src/gui/popups/itempopup.cpp')
-rw-r--r--src/gui/popups/itempopup.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp
index 99418881f..df245370c 100644
--- a/src/gui/popups/itempopup.cpp
+++ b/src/gui/popups/itempopup.cpp
@@ -117,13 +117,17 @@ void ItemPopup::setItem(const Item *const item, const bool showImage)
mLastId = item->getId();
if (serverVersion > 0)
{
- mItemName->setCaption(strprintf("%s (+%d), %d", ii.getName(
- item->getColor()).c_str(), item->getRefine(), ii.getId()));
+ mItemName->setCaption(strprintf("%s (+%u), %d",
+ ii.getName(item->getColor()).c_str(),
+ static_cast<unsigned int>(item->getRefine()),
+ ii.getId()));
}
else
{
mItemName->setCaption(strprintf("%s (+%d), %d",
- ii.getName().c_str(), item->getRefine(), ii.getId()));
+ ii.getName().c_str(),
+ static_cast<unsigned int>(item->getRefine()),
+ ii.getId()));
}
mItemName->adjustSize();
const unsigned minWidth = mItemName->getWidth() + 8;