summaryrefslogtreecommitdiff
path: root/src/gui/selldialog.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/selldialog.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/selldialog.h')
-rw-r--r--src/gui/selldialog.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/selldialog.h b/src/gui/selldialog.h
index c94e7250..7e37d860 100644
--- a/src/gui/selldialog.h
+++ b/src/gui/selldialog.h
@@ -41,7 +41,7 @@ class SellDialog : public Window, gcn::ActionListener, gcn::SelectionListener
public:
SellDialog(int npcId);
- virtual ~SellDialog();
+ ~SellDialog() override;
/**
* Resets the dialog, clearing inventory.
@@ -56,19 +56,19 @@ class SellDialog : public Window, gcn::ActionListener, gcn::SelectionListener
/**
* Called when receiving actions from the widgets.
*/
- void action(const gcn::ActionEvent &event);
+ void action(const gcn::ActionEvent &event) override;
/**
* Updates labels according to selected item.
*
* @see SelectionListener::selectionChanged
*/
- void valueChanged(const gcn::SelectionEvent &event);
+ void valueChanged(const gcn::SelectionEvent &event) override;
/**
* Allows for quick-selling by extending double-click events.
*/
- void mouseClicked(gcn::MouseEvent &mouseEvent);
+ void mouseClicked(gcn::MouseEvent &mouseEvent) override;
/**
* Gives Player's Money amount
@@ -78,7 +78,7 @@ class SellDialog : public Window, gcn::ActionListener, gcn::SelectionListener
/**
* Sets the visibility of this window.
*/
- void setVisible(bool visible);
+ void setVisible(bool visible) override;
/**
* Closes all instances.
@@ -86,7 +86,7 @@ class SellDialog : public Window, gcn::ActionListener, gcn::SelectionListener
static void closeAll();
private:
- typedef std::list<SellDialog*> DialogList;
+ using DialogList = std::list<SellDialog *>;
static DialogList instances;
/**