Skip to content
Snippets Groups Projects
Commit fea65689 authored by Lioncash's avatar Lioncash
Browse files

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.
parent 834e07d6
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
......@@ -75,7 +75,7 @@ public:
static constexpr std::size_t RANDOM_ENTROPY_SIZE = 4;
static SharedPtr<Process> Create(Core::System& system, std::string&& name);
static SharedPtr<Process> Create(Core::System& system, std::string name);
std::string GetTypeName() const override {
return "Process";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment