Browse Source

GCC 4.5 compatibility: no range-based for.

Vladimír Vondruš 13 years ago
parent
commit
56a0eac598
  1. 8
      src/Text/AbstractFontConverter.cpp

8
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()) {

Loading…
Cancel
Save