From 24f952c12b9f4fb759b490f9f141fbbed3bca446 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 24 Jan 2024 22:48:53 -0500 Subject: [PATCH] GraphicsModFeature: Reduce object churn a little --- .../GraphicsModSystem/Config/GraphicsModFeature.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModFeature.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModFeature.cpp index cc889f70cb..62dc68e54c 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModFeature.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModFeature.cpp @@ -7,9 +7,9 @@ void GraphicsModFeatureConfig::SerializeToConfig(picojson::object& json_obj) const { - json_obj["group"] = picojson::value{m_group}; - json_obj["action"] = picojson::value{m_action}; - json_obj["action_data"] = m_action_data; + json_obj.emplace("group", m_group); + json_obj.emplace("action", m_action); + json_obj.emplace("action_data", m_action_data); } bool GraphicsModFeatureConfig::DeserializeFromConfig(const picojson::object& obj)