mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 06:01:09 +02:00
config: Move input strings in Loader constructors
Eliminates a copy, minor, but basically a "free" change.
This commit is contained in:
1 parent
39b2be15ab
commit
5cec8ddca0
1 file changed
+4
-4
@@ -166,13 +166,13 @@ namespace FEX::Config {
|
||||
}
|
||||
|
||||
MainLoader::MainLoader()
|
||||
: FEX::Config::OptionMapper(FEXCore::Config::LayerType::LAYER_MAIN) {
|
||||
Config = FEXCore::Config::GetConfigFileLocation();
|
||||
: FEX::Config::OptionMapper(FEXCore::Config::LayerType::LAYER_MAIN)
|
||||
, Config{FEXCore::Config::GetConfigFileLocation()} {
|
||||
}
|
||||
|
||||
MainLoader::MainLoader(std::string ConfigFile)
|
||||
: FEX::Config::OptionMapper(FEXCore::Config::LayerType::LAYER_MAIN) {
|
||||
Config = ConfigFile;
|
||||
: FEX::Config::OptionMapper(FEXCore::Config::LayerType::LAYER_MAIN)
|
||||
, Config{std::move(ConfigFile)} {
|
||||
}
|
||||
|
||||
void MainLoader::Load() {
|
||||
|
||||
Reference in new issue
Block a user