diff options
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r-- | src/gui/logindialog.cpp | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index d70e8e4df..cbdc657bb 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -59,22 +59,27 @@ const char *UPDATE_TYPE_TEXT[3] = class UpdateTypeModel final : public gcn::ListModel { -public: - virtual ~UpdateTypeModel() - { } + public: + UpdateTypeModel() + { } - virtual int getNumberOfElements() - { - return 3; - } + A_DELETE_COPY(UpdateTypeModel); - virtual std::string getElementAt(int i) - { - if (i >= getNumberOfElements() || i < 0) - return _("???"); + virtual ~UpdateTypeModel() + { } - return gettext(UPDATE_TYPE_TEXT[i]); - } + virtual int getNumberOfElements() + { + return 3; + } + + virtual std::string getElementAt(int i) + { + if (i >= getNumberOfElements() || i < 0) + return _("???"); + + return gettext(UPDATE_TYPE_TEXT[i]); + } }; class UpdateListModel final : public gcn::ListModel @@ -86,6 +91,8 @@ class UpdateListModel final : public gcn::ListModel { } + A_DELETE_COPY(UpdateListModel); + virtual ~UpdateListModel() { } |