Browse Source

Text: work around bogus deprecation warnings on older GCCs.

Happens with 4.8 as well as 7, but not 9, and not on any later. Not sure
if GCC 8 is affected or not.
pull/650/head
Vladimír Vondruš 2 years ago
parent
commit
5eea669444
  1. 8
      src/Magnum/Text/AbstractFont.h

8
src/Magnum/Text/AbstractFont.h

@ -797,18 +797,26 @@ class MAGNUM_TEXT_EXPORT
AbstractLayouter {
public:
/** @brief Copying is not allowed */
CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */
AbstractLayouter(const AbstractLayouter&) = delete;
CORRADE_IGNORE_DEPRECATED_POP
/** @brief Moving is not allowed */
CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */
AbstractLayouter(AbstractLayouter&&) = delete;
CORRADE_IGNORE_DEPRECATED_POP
virtual ~AbstractLayouter();
/** @brief Copying is not allowed */
CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */
AbstractLayouter& operator=(const AbstractLayouter&) = delete;
CORRADE_IGNORE_DEPRECATED_POP
/** @brief Moving is not allowed */
CORRADE_IGNORE_DEPRECATED_PUSH /* GCC <=7 warns due to the argument */
AbstractLayouter& operator=(const AbstractLayouter&&) = delete;
CORRADE_IGNORE_DEPRECATED_POP
/** @brief Count of glyphs in the laid out text */
UnsignedInt glyphCount() const { return _glyphs.size(); }

Loading…
Cancel
Save