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: protected:
constexpr InputEvent(Modifiers modifiers): _modifiers(modifiers), _accepted(false) {} constexpr InputEvent(Modifiers modifiers): _modifiers(modifiers), _accepted(false) {}
~InputEvent() = default; ~InputEvent();
#endif #endif
private: private:
@ -297,6 +297,8 @@ class AbstractXApplication::InputEvent {
bool _accepted; bool _accepted;
}; };
AbstractXApplication::InputEvent::~InputEvent() = default;
CORRADE_ENUMSET_OPERATORS(AbstractXApplication::InputEvent::Modifiers) CORRADE_ENUMSET_OPERATORS(AbstractXApplication::InputEvent::Modifiers)
/** /**

4
src/Platform/GlutApplication.h

@ -366,12 +366,14 @@ class GlutApplication::InputEvent {
protected: protected:
constexpr InputEvent(): _accepted(false) {} constexpr InputEvent(): _accepted(false) {}
~InputEvent() = default; ~InputEvent();
private: private:
bool _accepted; bool _accepted;
}; };
GlutApplication::InputEvent::~InputEvent() = default;
/** /**
@brief Key event @brief Key event

4
src/Platform/GlxContextHandler.h

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

4
src/Platform/Sdl2Application.h

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

Loading…
Cancel
Save