summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-10 23:35:30 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-10 23:35:30 +0100
commit8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618 (patch)
tree3588c5990b6e5d6a0616442cb5bb4a4a76daff65 /src/gui/itempopup.cpp
parentfadc53015b35b6b51313fb1c1debea82e85b8110 (diff)
downloadmana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.tar.gz
mana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.tar.bz2
mana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.tar.xz
mana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.zip
Use string::empty() instead of comparing to ""
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r--src/gui/itempopup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp
index 200679d1..4c117f0a 100644
--- a/src/gui/itempopup.cpp
+++ b/src/gui/itempopup.cpp
@@ -136,7 +136,7 @@ void ItemPopup::setItem(const ItemInfo &item)
mItemWeightScroll->setDimension(gcn::Rectangle(2, 0, minWidth,
numRowsWeight * getFont()->getHeight()));
- if (item.getEffect() == "")
+ if (item.getEffect().empty())
{
setContentSize(minWidth, (numRowsDesc * getFont()->getHeight() +
(3 * getFont()->getHeight())));