diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-10 00:16:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-10 00:16:37 +0300 |
commit | e066ec2e038405621a7de50e4cd735e548eb488d (patch) | |
tree | 626e7ddacf867949a5380bfe528a332dffada5a4 /src/gui/widgets/setuptab.h | |
parent | 6d7af74bab17c03f1604e8351d397695286414ed (diff) | |
download | plus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.gz plus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.bz2 plus-e066ec2e038405621a7de50e4cd735e548eb488d.tar.xz plus-e066ec2e038405621a7de50e4cd735e548eb488d.zip |
Delete copy constructor in some classes.
Diffstat (limited to 'src/gui/widgets/setuptab.h')
-rw-r--r-- | src/gui/widgets/setuptab.h | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/src/gui/widgets/setuptab.h b/src/gui/widgets/setuptab.h index e47af8995..8d8715559 100644 --- a/src/gui/widgets/setuptab.h +++ b/src/gui/widgets/setuptab.h @@ -34,34 +34,36 @@ */ class SetupTab : public Container, public gcn::ActionListener { -public: - SetupTab(); + public: + SetupTab(); - const std::string &getName() const - { return mName; } + A_DELETE_COPY(SetupTab); - /** - * Called when the Apply button is pressed in the setup window. - */ - virtual void apply() = 0; + const std::string &getName() const + { return mName; } - /** - * Called when the Cancel button is pressed in the setup window. - */ - virtual void cancel() = 0; + /** + * Called when the Apply button is pressed in the setup window. + */ + virtual void apply() = 0; - virtual void externalUpdated(); + /** + * Called when the Cancel button is pressed in the setup window. + */ + virtual void cancel() = 0; -protected: - /** - * Sets the name displayed on the tab. Should be set in the - * constructor of a subclass. - */ - void setName(const std::string &name) - { mName = name; } + virtual void externalUpdated(); -private: - std::string mName; + protected: + /** + * Sets the name displayed on the tab. Should be set in the + * constructor of a subclass. + */ + void setName(const std::string &name) + { mName = name; } + + private: + std::string mName; }; #endif |