mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-17 19:00:39 +02:00
Config: std::move string into EnvMap
Same behavior, but without a reallocation.
This commit is contained in:
1 parent
acdbbec78d
commit
dbc4daaaa4
1 file changed
+1
-1
@@ -277,7 +277,7 @@ void EnvLoader::Load() {
|
||||
#include <FEXCore/Config/ConfigOptions.inl>
|
||||
|
||||
if (Value) {
|
||||
EnvMap.insert_or_assign(Key, *Value);
|
||||
EnvMap.insert_or_assign(Key, std::move(*Value));
|
||||
} else {
|
||||
EnvMap.insert_or_assign(Key, Value_View);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user