diff --git a/src/Magnum/Text/AbstractFont.cpp b/src/Magnum/Text/AbstractFont.cpp index c4a33e737..9ab261033 100644 --- a/src/Magnum/Text/AbstractFont.cpp +++ b/src/Magnum/Text/AbstractFont.cpp @@ -217,7 +217,8 @@ auto AbstractFont::doOpenFile(const Containers::StringView filename, const Float } void AbstractFont::close() { - if(!isOpened()) return; + if(!isOpened()) + return; doClose(); CORRADE_INTERNAL_ASSERT(!isOpened()); @@ -354,7 +355,8 @@ bool AbstractFont::fillGlyphCache(AbstractGlyphCache& cache, const Containers::S CORRADE_INTERNAL_ASSERT(uniqueCount <= glyphs.size()); std::size_t offset = 0; for(UnsignedInt i = 0; i != uniqueGlyphs.size(); ++i) - if(uniqueGlyphs[i]) glyphs[offset++].glyph = i; + if(uniqueGlyphs[i]) + glyphs[offset++].glyph = i; CORRADE_INTERNAL_ASSERT(offset == uniqueCount); /* Pass the unique set to the implementation */ diff --git a/src/Magnum/Text/AbstractFontConverter.cpp b/src/Magnum/Text/AbstractFontConverter.cpp index bb463799a..804e6bb4a 100644 --- a/src/Magnum/Text/AbstractFontConverter.cpp +++ b/src/Magnum/Text/AbstractFontConverter.cpp @@ -156,7 +156,8 @@ bool AbstractFontConverter::doExportFontToFile(AbstractFont& font, AbstractGlyph /* Export all data */ const auto data = doExportFontToData(font, cache, filename, characters); - if(data.empty()) return false; + if(data.empty()) + return false; for(const auto& d: data) if(!Utility::Path::write(d.first, d.second)) { Error() << "Text::AbstractFontConverter::exportFontToFile(): cannot write to file" << d.first; @@ -186,7 +187,8 @@ std::vector>> AbstractFontConvert std::vector>> out; Containers::Array result = doExportGlyphCacheToSingleData(cache); - if(result) out.emplace_back(filename, Utility::move(result)); + if(result) + out.emplace_back(filename, Utility::move(result)); return out; } @@ -219,7 +221,8 @@ bool AbstractFontConverter::doExportGlyphCacheToFile(AbstractGlyphCache& cache, /* Export all data */ const auto data = doExportGlyphCacheToData(cache, filename); - if(data.empty()) return false; + if(data.empty()) + return false; for(const auto& d: data) if(!Utility::Path::write(d.first, d.second)) { Error() << "Text::AbstractFontConverter::exportGlyphCacheToFile(): cannot write to file" << d.first;