diff --git a/src/Plugins/MagnumFont/MagnumFont.cpp b/src/Plugins/MagnumFont/MagnumFont.cpp index 8ef9ae8d6..33a12b7bc 100644 --- a/src/Plugins/MagnumFont/MagnumFont.cpp +++ b/src/Plugins/MagnumFont/MagnumFont.cpp @@ -154,8 +154,8 @@ void MagnumFont::openInternal(Utility::Configuration&& conf, Trade::ImageData2D& /* Glyph advances */ const std::vector glyphs = _opened->conf.groups("glyph"); _opened->glyphAdvance.reserve(glyphs.size()); - for(const Utility::ConfigurationGroup* const g: glyphs) - _opened->glyphAdvance.push_back(g->value("advance")); + for(auto it = glyphs.begin(); it != glyphs.end(); ++it) + _opened->glyphAdvance.push_back((*it)->value("advance")); /* Fill character->glyph map */ const std::vector chars = _opened->conf.groups("char");