From 71f88c02f79a1164430eec1de3e15edec011a15e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 18:35:21 +0300 Subject: improve construcors in abstract classes. Also add some missing final to classes. --- src/gui/widgets/widget2.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/gui/widgets/widget2.h') 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; }; -- cgit v1.2.3-70-g09d2