summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-10 03:29:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-10 03:29:39 +0300
commit1d3118ec21f537695dc0e6a9608acd67396d0a51 (patch)
tree5cf9229b2d23f2a7a584b5fed9aaead306df6496 /src/gui/logindialog.cpp
parentdd996d01676d7dca3eec442b14c4966ba0bb0935 (diff)
downloadmv-1d3118ec21f537695dc0e6a9608acd67396d0a51.tar.gz
mv-1d3118ec21f537695dc0e6a9608acd67396d0a51.tar.bz2
mv-1d3118ec21f537695dc0e6a9608acd67396d0a51.tar.xz
mv-1d3118ec21f537695dc0e6a9608acd67396d0a51.zip
Delete copy constructor from other classes.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r--src/gui/logindialog.cpp33
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()
{ }