summaryrefslogtreecommitdiff
path: root/src/gui/itemamountwindow.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
commit5afe88df2538274859a162ffd63ed52118e80c19 (patch)
treeb610dfd58dc748fd63f49565b2a43eea2316714f /src/gui/itemamountwindow.h
parent73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff)
downloadmana-client-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz
mana-client-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2
mana-client-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz
mana-client-5afe88df2538274859a162ffd63ed52118e80c19.zip
Apply C++11 fixits
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
Diffstat (limited to 'src/gui/itemamountwindow.h')
-rw-r--r--src/gui/itemamountwindow.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/itemamountwindow.h b/src/gui/itemamountwindow.h
index cf18d72a..d0ac52d5 100644
--- a/src/gui/itemamountwindow.h
+++ b/src/gui/itemamountwindow.h
@@ -53,7 +53,7 @@ class ItemAmountWindow : public Window,
/**
* Called when receiving actions from widget.
*/
- void action(const gcn::ActionEvent &event);
+ void action(const gcn::ActionEvent &event) override;
/**
* Sets default amount value.
@@ -61,15 +61,15 @@ class ItemAmountWindow : public Window,
void resetAmount();
// MouseListener
- void mouseMoved(gcn::MouseEvent &event);
- void mouseExited(gcn::MouseEvent &event);
+ void mouseMoved(gcn::MouseEvent &event) override;
+ void mouseExited(gcn::MouseEvent &event) override;
/**
* Schedules the Item Amount window for deletion.
*/
- void close();
+ void close() override;
- void keyReleased(gcn::KeyEvent &keyEvent);
+ void keyReleased(gcn::KeyEvent &keyEvent) override;
/**
* Creates the dialog, or bypass it if there aren't enough items.
@@ -77,7 +77,7 @@ class ItemAmountWindow : public Window,
static void showWindow(Usage usage, Window *parent, Item *item,
int maxRange = 0);
- ~ItemAmountWindow();
+ ~ItemAmountWindow() override;
private:
static void finish(Item *item, int amount, Usage usage);