Truly use emplace_back in CommandLineConfigLayerLoader constructor
This commit is contained in:
parent
dd8bc7b3e6
commit
80e8037e0b
|
@ -26,11 +26,10 @@ public:
|
||||||
: ConfigLayerLoader(Config::LayerType::CommandLine)
|
: ConfigLayerLoader(Config::LayerType::CommandLine)
|
||||||
{
|
{
|
||||||
if (!video_backend.empty())
|
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())
|
if (!audio_backend.empty())
|
||||||
m_values.emplace_back(
|
m_values.emplace_back(Config::MAIN_DSP_HLE.location, ValueToString(audio_backend == "HLE"));
|
||||||
std::make_tuple(Config::MAIN_DSP_HLE.location, ValueToString(audio_backend == "HLE")));
|
|
||||||
|
|
||||||
// Arguments are in the format of <System>.<Section>.<Key>=Value
|
// Arguments are in the format of <System>.<Section>.<Key>=Value
|
||||||
for (const auto& arg : args)
|
for (const auto& arg : args)
|
||||||
|
@ -45,7 +44,8 @@ public:
|
||||||
if (system)
|
if (system)
|
||||||
{
|
{
|
||||||
m_values.emplace_back(
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue