summaryrefslogtreecommitdiff
path: root/src/gui/itemamountwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/itemamountwindow.cpp')
-rw-r--r--src/gui/itemamountwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp
index 285936a5..947b5bdc 100644
--- a/src/gui/itemamountwindow.cpp
+++ b/src/gui/itemamountwindow.cpp
@@ -79,7 +79,7 @@ void ItemAmountWindow::finish(Item *item, int amount, Usage usage)
ItemAmountWindow::ItemAmountWindow(Usage usage, Window *parent, Item *item,
int maxRange):
- Window("", true, parent),
+ Window(std::string(), true, parent),
mItem(item),
mMax(maxRange),
mUsage(usage)
@@ -103,9 +103,8 @@ ItemAmountWindow::ItemAmountWindow(Usage usage, Window *parent, Item *item,
mItemAmountSlide->setActionEventId("slide");
mItemAmountSlide->addActionListener(this);
- //Item icon
- Image *image = item->getImage();
- mItemIcon = new Icon(image);
+ // Item icon
+ mItemIcon = new Icon(item->getImage());
// Buttons
auto *minusButton = new Button(_("-"), "dec", this);