From 314b86aead1f3bd2e20840d493178b07113571eb Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Mon, 19 Aug 2024 17:17:27 +0200 Subject: feat: Make set `static const` for compiler optimisation --- primedev/mods/modsavefiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'primedev') diff --git a/primedev/mods/modsavefiles.cpp b/primedev/mods/modsavefiles.cpp index 5f1317b9..a7075612 100644 --- a/primedev/mods/modsavefiles.cpp +++ b/primedev/mods/modsavefiles.cpp @@ -82,7 +82,7 @@ template void SaveFileManager::SaveFileAsync(fs::path fi } // TODO: move into list of global consts? - std::set whitelist = {".txt", ".json"}; + static const std::set whitelist = {".txt", ".json"}; // Check if file extension is whitelisted std::string extension = file.extension().string(); -- cgit v1.2.3