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/debugwindow.h | |
parent | 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (diff) | |
download | mv-71f88c02f79a1164430eec1de3e15edec011a15e.tar.gz mv-71f88c02f79a1164430eec1de3e15edec011a15e.tar.bz2 mv-71f88c02f79a1164430eec1de3e15edec011a15e.tar.xz mv-71f88c02f79a1164430eec1de3e15edec011a15e.zip |
improve construcors in abstract classes.
Also add some missing final to classes.
Diffstat (limited to 'src/gui/debugwindow.h')
-rw-r--r-- | src/gui/debugwindow.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/debugwindow.h b/src/gui/debugwindow.h index 3a6fa7229..ef67df432 100644 --- a/src/gui/debugwindow.h +++ b/src/gui/debugwindow.h @@ -34,10 +34,6 @@ class DebugTab : public Container friend class DebugWindow; public: - explicit DebugTab(const Widget2 *const widget) : - Container(widget) - { } - A_DELETE_COPY(DebugTab) void logic() override = 0; @@ -45,7 +41,10 @@ class DebugTab : public Container void resize(const int x, const int y) { setDimension(gcn::Rectangle(0, 0, x, y)); } - private: + protected: + explicit DebugTab(const Widget2 *const widget) : + Container(widget) + { } }; class MapDebugTab final : public DebugTab |