summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-01-08 16:34:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-01-08 16:34:43 +0000
commit8cd0977a3688fa705c83867c57505a47b9269369 (patch)
treeb7b48711051299607077ed31fdf3b3f6dd6cc41f /ui
parentTidy shadow map creation (diff)
downloadilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.bz2
ilt-8cd0977a3688fa705c83867c57505a47b9269369.tar.xz
ilt-8cd0977a3688fa705c83867c57505a47b9269369.zip
Fix up all the static analyzer warnings
Diffstat (limited to 'ui')
-rw-r--r--ui/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/font.cpp b/ui/font.cpp
index fc66d52..43991f0 100644
--- a/ui/font.cpp
+++ b/ui/font.cpp
@@ -82,7 +82,7 @@ Font::generateChars(const utf8_string_view chars) const
face.emplace(*ft, path.c_str());
FT_Set_Pixel_Sizes(*face, 0, size.z);
}
- FT_UInt glyph_index = FT_Get_Char_Index(*face, codepoint);
+ const FT_UInt glyph_index = FT_Get_Char_Index(*face, codepoint);
if (FT_Load_Glyph(*face, glyph_index, FT_LOAD_RENDER)) {
charsData.emplace(codepoint, CharData {});
continue;