diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-08-19 17:17:27 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2024-08-19 17:17:27 +0200 |
commit | 314b86aead1f3bd2e20840d493178b07113571eb (patch) | |
tree | 4b924af0cf0444f2c84fe071aaf2533b7da4887c | |
parent | f492899b79c2ae9f5853bdbde6ac6fd5b9b71adc (diff) | |
download | NorthstarLauncher-314b86aead1f3bd2e20840d493178b07113571eb.tar.gz NorthstarLauncher-314b86aead1f3bd2e20840d493178b07113571eb.zip |
feat: Make set `static const` for compiler optimisation
-rw-r--r-- | primedev/mods/modsavefiles.cpp | 2 |
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(); |