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/widget2.h | |
parent | 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (diff) | |
download | manaverse-71f88c02f79a1164430eec1de3e15edec011a15e.tar.gz manaverse-71f88c02f79a1164430eec1de3e15edec011a15e.tar.bz2 manaverse-71f88c02f79a1164430eec1de3e15edec011a15e.tar.xz manaverse-71f88c02f79a1164430eec1de3e15edec011a15e.zip |
improve construcors in abstract classes.
Also add some missing final to classes.
Diffstat (limited to 'src/gui/widgets/widget2.h')
-rw-r--r-- | src/gui/widgets/widget2.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/widgets/widget2.h b/src/gui/widgets/widget2.h index 9e164046b..0ab171b3e 100644 --- a/src/gui/widgets/widget2.h +++ b/src/gui/widgets/widget2.h @@ -29,19 +29,6 @@ class Widget2 { public: - Widget2() : - mPaletteOffset(0), - mForegroundColor2() - { - } - - explicit Widget2(const Widget2 *const widget) : - mPaletteOffset(widget ? widget->mPaletteOffset : 0), - mForegroundColor2() - { - checkPalette(); - } - virtual ~Widget2() { } @@ -91,6 +78,19 @@ class Widget2 } protected: + Widget2() : + mPaletteOffset(0), + mForegroundColor2() + { + } + + explicit Widget2(const Widget2 *const widget) : + mPaletteOffset(widget ? widget->mPaletteOffset : 0), + mForegroundColor2() + { + checkPalette(); + } + int mPaletteOffset; gcn::Color mForegroundColor2; }; |