From 40b050fe3710df4af6b38a338e8a9594714172ce Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 31 Jan 2024 12:27:40 -0500 Subject: [PATCH] GraphicsModGroup: std::move graphics_mod in Load() The config object is quite heavyweight, so we should move this instead of copying. --- .../VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp index f200604503..0873c09e91 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModGroup.cpp @@ -85,7 +85,7 @@ void GraphicsModGroupConfig::Load() auto mod_full_path = graphics_mod->GetAbsolutePath(); known_paths.insert(std::move(mod_full_path)); - m_graphics_mods.push_back(*graphics_mod); + m_graphics_mods.push_back(std::move(*graphics_mod)); } } }