core/memory, core/hle/kernel: Use std::move where applicable

Avoids pointless copies
This commit is contained in:
Lioncash 2018-07-18 19:02:47 -04:00
parent 3d1e8f750c
commit 46458e7284
9 changed files with 26 additions and 16 deletions

View file

@ -400,7 +400,7 @@ SharedPtr<Thread> SetupMainThread(VAddr entry_point, u32 priority,
// Initialize new "main" thread
auto thread_res = Thread::Create("main", entry_point, priority, 0, THREADPROCESSORID_0,
Memory::STACK_AREA_VADDR_END, owner_process);
Memory::STACK_AREA_VADDR_END, std::move(owner_process));
SharedPtr<Thread> thread = std::move(thread_res).Unwrap();