diff --git a/src/Plugins/MagnumFont/MagnumFont.cpp b/src/Plugins/MagnumFont/MagnumFont.cpp index 1880f1332..422f485b2 100644 --- a/src/Plugins/MagnumFont/MagnumFont.cpp +++ b/src/Plugins/MagnumFont/MagnumFont.cpp @@ -138,7 +138,8 @@ void MagnumFont::openInternal(Utility::Configuration&& conf, Trade::ImageData2D& /* Fill character->glyph map */ const std::vector chars = _opened->conf.groups("char"); - for(const Utility::ConfigurationGroup* const c: chars) { + for(auto it = chars.begin(); it != chars.end(); ++it) { + const Utility::ConfigurationGroup* const c = *it; const UnsignedInt glyphId = c->value("glyph"); CORRADE_INTERNAL_ASSERT(glyphId < _opened->glyphAdvance.size()); _opened->glyphId.emplace(c->value("unicode"), glyphId);