From f984c15e15bbeff17c8bec8023cb5796d2aa7439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 18 Sep 2013 22:38:25 +0200 Subject: [PATCH] GCC 4.5 compatibility: cannot default destructor in class body. --- src/Platform/AbstractXApplication.h | 4 +++- src/Platform/GlutApplication.h | 4 +++- src/Platform/GlxContextHandler.h | 4 +++- src/Platform/Sdl2Application.h | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Platform/AbstractXApplication.h b/src/Platform/AbstractXApplication.h index 179f0f158..f8d410356 100644 --- a/src/Platform/AbstractXApplication.h +++ b/src/Platform/AbstractXApplication.h @@ -289,7 +289,7 @@ class AbstractXApplication::InputEvent { protected: constexpr InputEvent(Modifiers modifiers): _modifiers(modifiers), _accepted(false) {} - ~InputEvent() = default; + ~InputEvent(); #endif private: @@ -297,6 +297,8 @@ class AbstractXApplication::InputEvent { bool _accepted; }; +AbstractXApplication::InputEvent::~InputEvent() = default; + CORRADE_ENUMSET_OPERATORS(AbstractXApplication::InputEvent::Modifiers) /** diff --git a/src/Platform/GlutApplication.h b/src/Platform/GlutApplication.h index 7a5e0d35e..09850e399 100644 --- a/src/Platform/GlutApplication.h +++ b/src/Platform/GlutApplication.h @@ -366,12 +366,14 @@ class GlutApplication::InputEvent { protected: constexpr InputEvent(): _accepted(false) {} - ~InputEvent() = default; + ~InputEvent(); private: bool _accepted; }; +GlutApplication::InputEvent::~InputEvent() = default; + /** @brief Key event diff --git a/src/Platform/GlxContextHandler.h b/src/Platform/GlxContextHandler.h index 24ac70e7e..f78350800 100644 --- a/src/Platform/GlxContextHandler.h +++ b/src/Platform/GlxContextHandler.h @@ -49,7 +49,7 @@ GlxApplication. */ class GlxContextHandler: public AbstractContextHandler { public: - explicit GlxContextHandler() = default; + explicit GlxContextHandler(); ~GlxContextHandler(); VisualID getVisualId(Display* nativeDisplay) override; @@ -68,6 +68,8 @@ class GlxContextHandler: public AbstractContextHandler