Truly use emplace_back in CommandLineConfigLayerLoader constructor

This commit is contained in:
Silent 2019-08-11 20:43:18 +02:00
parent dd8bc7b3e6
commit 80e8037e0b
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 4 additions and 4 deletions

View File

@ -26,11 +26,10 @@ public:
: ConfigLayerLoader(Config::LayerType::CommandLine)
{
if (!video_backend.empty())
m_values.emplace_back(std::make_tuple(Config::MAIN_GFX_BACKEND.location, video_backend));
m_values.emplace_back(Config::MAIN_GFX_BACKEND.location, video_backend);
if (!audio_backend.empty())
m_values.emplace_back(
std::make_tuple(Config::MAIN_DSP_HLE.location, ValueToString(audio_backend == "HLE")));
m_values.emplace_back(Config::MAIN_DSP_HLE.location, ValueToString(audio_backend == "HLE"));
// Arguments are in the format of <System>.<Section>.<Key>=Value
for (const auto& arg : args)
@ -45,7 +44,8 @@ public:
if (system)
{
m_values.emplace_back(
std::make_tuple(Config::ConfigLocation{*system, section, key}, value));
Config::ConfigLocation{std::move(*system), std::move(section), std::move(key)},
std::move(value));
}
}
}