diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-24 12:16:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-24 12:16:51 +0300 |
commit | 10be802d2640bad75222736216cdcfcd7fb6a521 (patch) | |
tree | 5bab90179109a101d2a77ee6bd34326b1cd233df /src/gui/windows/logindialog.cpp | |
parent | 67a349cefcb72c7770b98bf645a7eca35695bb2b (diff) | |
download | manaplus-10be802d2640bad75222736216cdcfcd7fb6a521.tar.gz manaplus-10be802d2640bad75222736216cdcfcd7fb6a521.tar.bz2 manaplus-10be802d2640bad75222736216cdcfcd7fb6a521.tar.xz manaplus-10be802d2640bad75222736216cdcfcd7fb6a521.zip |
add final keyword to windows files.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r-- | src/gui/windows/logindialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index f6c1baf42..4162af961 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -63,7 +63,7 @@ namespace A_DELETE_COPY(OpenUrlListener) - void action(const gcn::ActionEvent &event) override + void action(const gcn::ActionEvent &event) override final { if (event.getId() == "yes") openBrowser(url); @@ -94,12 +94,12 @@ class UpdateTypeModel final : public gcn::ListModel ~UpdateTypeModel() { } - int getNumberOfElements() override + int getNumberOfElements() override final { return 3; } - std::string getElementAt(int i) override + std::string getElementAt(int i) override final { if (i >= getNumberOfElements() || i < 0) return "???"; @@ -121,14 +121,14 @@ class UpdateListModel final : public gcn::ListModel ~UpdateListModel() { } - int getNumberOfElements() override + int getNumberOfElements() override final { if (!mLoginData) return 0; return static_cast<int>(mLoginData->updateHosts.size()); } - std::string getElementAt(int i) override + std::string getElementAt(int i) override final { if (!mLoginData || i >= getNumberOfElements() || i < 0) return "???"; |