From 80e8037e0b5e1894140cf4d7f8a1881df0428fe9 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 11 Aug 2019 20:43:18 +0200 Subject: [PATCH] Truly use emplace_back in CommandLineConfigLayerLoader constructor --- Source/Core/UICommon/CommandLineParse.cpp | 8 ++++---- 1 file 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 .
.=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)); } } }