MemoryPatches: std::move std::vector in the constructor
We can avoid copying the vector contents in this instance.
This commit is contained in:
parent
2beb135bdf
commit
4c33bb8dda
|
@ -6,11 +6,12 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
namespace Common::Debug
|
namespace Common::Debug
|
||||||
{
|
{
|
||||||
MemoryPatch::MemoryPatch(u32 address_, std::vector<u8> value_)
|
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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue