kernel/process: Make Create()'s name parameter be taken by value

Makes the interface more flexible in terms of how Create() may be
called, while still allowing the parameter itself to be moved into.
This commit is contained in:
Lioncash 2019-06-09 18:47:34 -04:00
commit fea6568955

View file

@ -48,7 +48,7 @@ void SetupMainThread(Process& owner_process, KernelCore& kernel, u32 priority) {
}
} // Anonymous namespace
SharedPtr<Process> Process::Create(Core::System& system, std::string&& name) {
SharedPtr<Process> Process::Create(Core::System& system, std::string name) {
auto& kernel = system.Kernel();
SharedPtr<Process> process(new Process(system));