Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Feb 21, 2025
1 parent 1e30cb0 commit db31e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GWToolboxdll/Utils/FontLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ namespace FontLoader {
if (!GImGui)
return false;

for (auto font : GetFonts()) {
for (const auto font : GetFonts()) {
if (font && font->ContainerAtlas == ImGui::GetIO().Fonts)
continue;
ReleaseFontTexture(font);
Expand All @@ -446,7 +446,7 @@ namespace FontLoader {
if (fonts_loading)
return false;

for (auto font : GetFonts()) {
for (const auto font : GetFonts()) {
if (!(font && font->ContainerAtlas))
continue;
if (font->ContainerAtlas == ImGui::GetIO().Fonts)
Expand Down

0 comments on commit db31e0d

Please sign in to comment.