From 4c33bb8dda7497657e981d0b2136785731f5288a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 29 May 2018 18:01:13 -0400 Subject: [PATCH] MemoryPatches: std::move std::vector in the constructor We can avoid copying the vector contents in this instance. --- Source/Core/Common/Debug/MemoryPatches.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Debug/MemoryPatches.cpp b/Source/Core/Common/Debug/MemoryPatches.cpp index db7a40c58b..aaded7343d 100644 --- a/Source/Core/Common/Debug/MemoryPatches.cpp +++ b/Source/Core/Common/Debug/MemoryPatches.cpp @@ -6,11 +6,12 @@ #include #include +#include namespace Common::Debug { MemoryPatch::MemoryPatch(u32 address_, std::vector value_) - : address(address_), value(value_), is_enabled(State::Enabled) + : address(address_), value(std::move(value_)), is_enabled(State::Enabled) { }