aboutsummaryrefslogtreecommitdiff
path: root/primedev
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-08-19 17:17:27 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-08-19 17:17:27 +0200
commit314b86aead1f3bd2e20840d493178b07113571eb (patch)
tree4b924af0cf0444f2c84fe071aaf2533b7da4887c /primedev
parentf492899b79c2ae9f5853bdbde6ac6fd5b9b71adc (diff)
downloadNorthstarLauncher-314b86aead1f3bd2e20840d493178b07113571eb.tar.gz
NorthstarLauncher-314b86aead1f3bd2e20840d493178b07113571eb.zip
feat: Make set `static const` for compiler optimisation
Diffstat (limited to 'primedev')
-rw-r--r--primedev/mods/modsavefiles.cpp2
1 files changed, 1 insertions, 1 deletions
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 <ScriptContext context> void SaveFileManager::SaveFileAsync(fs::path fi
}
// TODO: move into list of global consts?
- std::set<std::string> whitelist = {".txt", ".json"};
+ static const std::set<std::string> whitelist = {".txt", ".json"};
// Check if file extension is whitelisted
std::string extension = file.extension().string();