diff --git a/src/Text/AbstractFontConverter.cpp b/src/Text/AbstractFontConverter.cpp index 9da53d4aa..d9c2ed15f 100644 --- a/src/Text/AbstractFontConverter.cpp +++ b/src/Text/AbstractFontConverter.cpp @@ -91,7 +91,9 @@ bool AbstractFontConverter::doExportFontToFile(AbstractFont* const font, GlyphCa /* Export all data */ const auto data = doExportFontToData(font, cache, filename, characters); - for(const auto& d: data) { + for(auto it = data.begin(); it != data.end(); ++it) { + const auto& d = *it; + /* Open file */ std::ofstream out(d.first.data(), std::ios::binary); if(!out.good()) { @@ -161,7 +163,9 @@ bool AbstractFontConverter::doExportGlyphCacheToFile(GlyphCache* cache, const st /* Export all data */ const auto data = doExportGlyphCacheToData(cache, filename); - for(const auto& d: data) { + for(auto it = data.begin(); it != data.end(); ++it) { + const auto& d = *it; + /* Open file */ std::ofstream out(d.first.data(), std::ios::binary); if(!out.good()) {