Browse Source

Platform: silence a useless deprecation warning.

Newer GCCs don't warn for use of a deprecated API in a deprecated API,
GCC 4.8 doesn't have such redundancy check in place yet.
pull/680/head
Vladimír Vondruš 10 months ago
parent
commit
50ceeda103
  1. 2
      src/Magnum/Platform/AbstractXApplication.h

2
src/Magnum/Platform/AbstractXApplication.h

@ -1191,9 +1191,11 @@ class AbstractXApplication::InputEvent {
* @m_deprecated_since_latest Use @ref KeyEvent::pointers() or * @m_deprecated_since_latest Use @ref KeyEvent::pointers() or
* @ref PointerMoveEvent::pointers() instead. * @ref PointerMoveEvent::pointers() instead.
*/ */
CORRADE_IGNORE_DEPRECATED_PUSH
CORRADE_DEPRECATED("use pointers() instead") Buttons buttons() const { CORRADE_DEPRECATED("use pointers() instead") Buttons buttons() const {
return Buttons(_modifiers & (Button1Mask|Button2Mask|Button3Mask)); return Buttons(_modifiers & (Button1Mask|Button2Mask|Button3Mask));
} }
CORRADE_IGNORE_DEPRECATED_POP
#endif #endif
#ifndef DOXYGEN_GENERATING_OUTPUT #ifndef DOXYGEN_GENERATING_OUTPUT

Loading…
Cancel
Save