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/debugwindow.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gui/debugwindow.h') 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 -- cgit v1.2.3-70-g09d2