mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
MemoryPatches: std::move std::vector in the constructor
We can avoid copying the vector contents in this instance.
This commit is contained in:
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user