Browse Source

Text: fix annoying warnings on GCC 4.8.

pull/325/head
Vladimír Vondruš 7 years ago
parent
commit
a5634f4bf4
  1. 6
      src/Magnum/Text/AbstractFont.h

6
src/Magnum/Text/AbstractFont.h

@ -275,6 +275,12 @@ class MAGNUM_TEXT_EXPORT AbstractFont: public PluginManager::AbstractPlugin {
* @see @ref doOpenFile(), @ref doOpenData(), @ref doOpenSingleData()
*/
struct Metrics {
#ifndef DOXYGEN_GENERATING_OUTPUT
/* Otherwise GCC 4.8 loudly complains about missing initializers */
constexpr /*implicit*/ Metrics() noexcept: size{}, ascent{}, descent{}, lineHeight{} {}
constexpr /*implicit*/ Metrics(Float size, Float ascent, Float descent, Float lineHeight) noexcept: size{size}, ascent{ascent}, descent{descent}, lineHeight{lineHeight} {}
#endif
/**
* Font size
* @see @ref size()

Loading…
Cancel
Save