Browse Source
Merge pull request #2571 from lioncash/ref
kernel/process: Make Create()'s name parameter be taken by value
pull/15/merge
Zach Hilman
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
src/core/hle/kernel/process.cpp
-
src/core/hle/kernel/process.h
|
|
|
@ -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"; |
|
|
|
|