diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-19 05:55:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-19 05:55:55 +0200 |
commit | 85421f34062bd0303f97cc9d01fa838709231326 (patch) | |
tree | c953a283bcf0f83c83b282bfea2da8080f16d556 /src/core/hle/kernel/shared_memory.cpp | |
parent | Merge pull request #691 from lioncash/guard (diff) | |
parent | core/memory, core/hle/kernel: Use std::move where applicable (diff) | |
download | yuzu-85421f34062bd0303f97cc9d01fa838709231326.tar yuzu-85421f34062bd0303f97cc9d01fa838709231326.tar.gz yuzu-85421f34062bd0303f97cc9d01fa838709231326.tar.bz2 yuzu-85421f34062bd0303f97cc9d01fa838709231326.tar.lz yuzu-85421f34062bd0303f97cc9d01fa838709231326.tar.xz yuzu-85421f34062bd0303f97cc9d01fa838709231326.tar.zst yuzu-85421f34062bd0303f97cc9d01fa838709231326.zip |
Diffstat (limited to 'src/core/hle/kernel/shared_memory.cpp')
-rw-r--r-- | src/core/hle/kernel/shared_memory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index 93f7f2772..4bf11c7e2 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp @@ -2,7 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. -#include <cstring> +#include <utility> #include "common/logging/log.h" #include "core/core.h" #include "core/hle/kernel/errors.h" @@ -21,7 +21,7 @@ SharedPtr<SharedMemory> SharedMemory::Create(SharedPtr<Process> owner_process, u MemoryRegion region, std::string name) { SharedPtr<SharedMemory> shared_memory(new SharedMemory); - shared_memory->owner_process = owner_process; + shared_memory->owner_process = std::move(owner_process); shared_memory->name = std::move(name); shared_memory->size = size; shared_memory->permissions = permissions; @@ -87,7 +87,7 @@ SharedPtr<SharedMemory> SharedMemory::CreateForApplet(std::shared_ptr<std::vecto shared_memory->size = size; shared_memory->permissions = permissions; shared_memory->other_permissions = other_permissions; - shared_memory->backing_block = heap_block; + shared_memory->backing_block = std::move(heap_block); shared_memory->backing_block_offset = offset; shared_memory->base_address = Memory::HEAP_VADDR + offset; |