Cleanup whitespace and suppress unused variable warnings

This commit is contained in:
2026-02-22 17:58:09 +02:00
parent 85bb292a31
commit 8c2fea9edf
6 changed files with 27 additions and 21 deletions

View File

@@ -455,7 +455,7 @@ static void initialize_fonts()
auto it = s_available_fonts.find(BAN::String(name));
if (it == s_available_fonts.end())
continue;
continue;
MUST(s_available_fonts.insert(BAN::String(alias), it->value));
}
@@ -756,7 +756,7 @@ static void write_text(WriteTextInfo& info)
for (size_t i = 0; i < info.string_len; i++)
{
const uint16_t codepoint = info.wide ? (info.string[i * 2] << 8) | info.string[i * 2 + 1] : info.string[i];
auto glyph_index = info.font->find_glyph(codepoint);
if (!glyph_index.has_value())
continue;