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

We can avoid copying the vector contents in this instance.
This commit is contained in:
Lioncash 2018-05-29 18:01:13 -04:00
parent 2beb135bdf
commit 4c33bb8dda
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{
}