Browse Source

GCC 4.5 compatibility: cannot default destructor in class body.

Vladimír Vondruš 13 years ago
parent
commit
f984c15e15
  1. 4
      src/Platform/AbstractXApplication.h
  2. 4
      src/Platform/GlutApplication.h
  3. 4
      src/Platform/GlxContextHandler.h
  4. 4
      src/Platform/Sdl2Application.h

4
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)
/**

4
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

4
src/Platform/GlxContextHandler.h

@ -49,7 +49,7 @@ GlxApplication.
*/
class GlxContextHandler: public AbstractContextHandler<Display*, VisualID, Window> {
public:
explicit GlxContextHandler() = default;
explicit GlxContextHandler();
~GlxContextHandler();
VisualID getVisualId(Display* nativeDisplay) override;
@ -68,6 +68,8 @@ class GlxContextHandler: public AbstractContextHandler<Display*, VisualID, Windo
GLXContext context;
};
GlxContextHandler::GlxContextHandler() = default;
}}
#endif

4
src/Platform/Sdl2Application.h

@ -349,13 +349,15 @@ class Sdl2Application::InputEvent {
protected:
constexpr explicit InputEvent(): _accepted(false) {}
~InputEvent() = default;
~InputEvent();
#endif
private:
bool _accepted;
};
Sdl2Application::InputEvent::~InputEvent() = default;
/**
@brief Key event

Loading…
Cancel
Save