diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-25 18:35:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-25 18:35:21 +0300 |
commit | 71f88c02f79a1164430eec1de3e15edec011a15e (patch) | |
tree | 6a0772ee943a41314b5abd92fed0ce269faced27 /src/gui/widgets/characterviewbase.h | |
parent | 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (diff) | |
download | manaplus-71f88c02f79a1164430eec1de3e15edec011a15e.tar.gz manaplus-71f88c02f79a1164430eec1de3e15edec011a15e.tar.bz2 manaplus-71f88c02f79a1164430eec1de3e15edec011a15e.tar.xz manaplus-71f88c02f79a1164430eec1de3e15edec011a15e.zip |
improve construcors in abstract classes.
Also add some missing final to classes.
Diffstat (limited to 'src/gui/widgets/characterviewbase.h')
-rw-r--r-- | src/gui/widgets/characterviewbase.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/widgets/characterviewbase.h b/src/gui/widgets/characterviewbase.h index 2c90bb1e6..8ef949b7c 100644 --- a/src/gui/widgets/characterviewbase.h +++ b/src/gui/widgets/characterviewbase.h @@ -33,15 +33,6 @@ class CharacterViewBase : public Container, public gcn::ActionListener { public: - CharacterViewBase(CharSelectDialog *const widget, const int padding) : - Container(widget), - gcn::ActionListener(), - mParent(widget), - mPadding(padding), - mSelected(0) - { - } - A_DELETE_COPY(CharacterViewBase) virtual ~CharacterViewBase() @@ -57,6 +48,15 @@ class CharacterViewBase : public Container, } protected: + CharacterViewBase(CharSelectDialog *const widget, const int padding) : + Container(widget), + gcn::ActionListener(), + mParent(widget), + mPadding(padding), + mSelected(0) + { + } + CharSelectDialog *mParent; int mPadding; int mSelected; |