diff --git a/ui/style/style_core_font.cpp b/ui/style/style_core_font.cpp index 05b26d7..a98a59c 100644 --- a/ui/style/style_core_font.cpp +++ b/ui/style/style_core_font.cpp @@ -279,7 +279,7 @@ QString MonospaceFont() { } void destroyFonts() { - for (auto fontData : fontsMap) { + for (auto fontData : std::as_const(fontsMap)) { delete fontData; } fontsMap.clear();