summaryrefslogtreecommitdiff
path: root/src/gui/buydialog.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/buydialog.h
parent73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff)
downloadMana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz
Mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2
Mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz
Mana-5afe88df2538274859a162ffd63ed52118e80c19.zip
Apply C++11 fixits
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
Diffstat (limited to 'src/gui/buydialog.h')
-rw-r--r--src/gui/buydialog.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/buydialog.h b/src/gui/buydialog.h
index 7dd00019..b1126225 100644
--- a/src/gui/buydialog.h
+++ b/src/gui/buydialog.h
@@ -44,7 +44,7 @@ class BuyDialog : public Window, public gcn::ActionListener,
public:
BuyDialog(int npcId);
- ~BuyDialog();
+ ~BuyDialog() override;
/**
* Resets the dialog, clearing shop inventory.
@@ -64,7 +64,7 @@ class BuyDialog : public Window, public gcn::ActionListener,
/**
* Called when receiving actions from the widgets.
*/
- void action(const gcn::ActionEvent &event);
+ void action(const gcn::ActionEvent &event) override;
/**
* Returns the number of items in the shop inventory.
@@ -74,12 +74,12 @@ class BuyDialog : public Window, public gcn::ActionListener,
/**
* Updates the labels according to the selected item.
*/
- void valueChanged(const gcn::SelectionEvent &event);
+ void valueChanged(const gcn::SelectionEvent &event) override;
/**
* Allows for quick-buying by extending double-click events.
*/
- void mouseClicked(gcn::MouseEvent &mouseEvent);
+ void mouseClicked(gcn::MouseEvent &mouseEvent) override;
/**
* Returns the name of item number i in the shop inventory.
@@ -94,7 +94,7 @@ class BuyDialog : public Window, public gcn::ActionListener,
/**
* Sets the visibility of this window.
*/
- void setVisible(bool visible);
+ void setVisible(bool visible) override;
/**
* Closes all instances.
@@ -102,7 +102,7 @@ class BuyDialog : public Window, public gcn::ActionListener,
static void closeAll();
private:
- typedef std::list<BuyDialog*> DialogList;
+ using DialogList = std::list<BuyDialog *>;
static DialogList instances;
int mNpcId;