Permalink
Browse files

MemoryPatches: std::move std::vector in the constructor

We can avoid copying the vector contents in this instance.
  • Loading branch information...
lioncash committed May 29, 2018
1 parent 2beb135 commit 4c33bb8dda7497657e981d0b2136785731f5288a
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/Core/Common/Debug/MemoryPatches.cpp
@@ -6,11 +6,12 @@
#include <algorithm>
#include <sstream>
#include <utility>
namespace Common::Debug
{
MemoryPatch::MemoryPatch(u32 address_, std::vector<u8> value_)
: address(address_), value(value_), is_enabled(State::Enabled)
: address(address_), value(std::move(value_)), is_enabled(State::Enabled)
{
}

0 comments on commit 4c33bb8

Please sign in to comment.