From 8cd0977a3688fa705c83867c57505a47b9269369 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Jan 2023 16:34:43 +0000 Subject: Fix up all the static analyzer warnings --- ui/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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; -- cgit v1.2.3