diff options
| author | Silent <zdanio95@gmail.com> | 2019-08-11 20:43:18 +0200 |
|---|---|---|
| committer | Silent <zdanio95@gmail.com> | 2019-08-11 20:43:18 +0200 |
| commit | 80e8037e0b5e1894140cf4d7f8a1881df0428fe9 (patch) | |
| tree | 6d1c46b3d8f49ce5beba3a8d69721fe3901bbe77 /Source/Core/UICommon/CommandLineParse.cpp | |
| parent | dd8bc7b3e60642129c955f4f03f498d90ecb2c14 (diff) | |
Truly use emplace_back in CommandLineConfigLayerLoader constructor
Diffstat (limited to 'Source/Core/UICommon/CommandLineParse.cpp')
| -rw-r--r-- | Source/Core/UICommon/CommandLineParse.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/UICommon/CommandLineParse.cpp b/Source/Core/UICommon/CommandLineParse.cpp index 1a7f2bb82d..6eb94844d6 100644 --- a/Source/Core/UICommon/CommandLineParse.cpp +++ b/Source/Core/UICommon/CommandLineParse.cpp @@ -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)); } } } |
