From d579731ba22f2bb804c16663baf4747e51f337d0 Mon Sep 17 00:00:00 2001 From: Saurtron Date: Wed, 11 Dec 2024 14:40:01 +0100 Subject: [PATCH] Make configFmtVar and add extra empty line. --- rts/Rendering/Fonts/CFontTexture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rts/Rendering/Fonts/CFontTexture.cpp b/rts/Rendering/Fonts/CFontTexture.cpp index 7a66a7a4d8..33f7cbce7d 100644 --- a/rts/Rendering/Fonts/CFontTexture.cpp +++ b/rts/Rendering/Fonts/CFontTexture.cpp @@ -154,8 +154,9 @@ class FtLibraryHandler { const int neededSize = ExpandEnvironmentStrings(winFontPath, nullptr, 0); std::vector osFontsDir (neededSize); ExpandEnvironmentStrings(winFontPath, osFontsDir.data(), osFontsDir.size()); + static constexpr const char* configFmt = R"(%sfontcache)"; - std::string configFmtVar = fmt::sprintf(configFmt, osFontsDir.data()); + const std::string configFmtVar = fmt::sprintf(configFmt, osFontsDir.data()); #else const std::string configFmtVar = R"(fontcache)"; #endif