Skip to content

Commit

Permalink
Clang the conquerer strikes again
Browse files Browse the repository at this point in the history
  • Loading branch information
MjnMixael committed Aug 29, 2024
1 parent 3776da1 commit a1d4d29
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions code/graphics/software/FontManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,10 @@ namespace font

bool FontManager::hasScalingFonts()
{
for (auto& font : fonts) {
return std::any_of(fonts.begin(), fonts.end(), [](const std::unique_ptr<FSFont>& font) {
const auto& thisFont = font.get();
if (thisFont->getType() == NVG_FONT && thisFont->getScaleBehavior()) {
return true;
}
}

return false;
return thisFont->getType() == NVG_FONT && thisFont->getScaleBehavior();
});
}

int FontManager::numberOfFonts()
Expand Down

0 comments on commit a1d4d29

Please sign in to comment.