mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 22:14:23 +01:00
Merge pull request #2571 from lioncash/ref
kernel/process: Make Create()'s name parameter be taken by value
This commit is contained in:
commit
364932df3a
@ -48,7 +48,7 @@ void SetupMainThread(Process& owner_process, KernelCore& kernel, u32 priority) {
|
|||||||
}
|
}
|
||||||
} // Anonymous namespace
|
} // 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();
|
auto& kernel = system.Kernel();
|
||||||
|
|
||||||
SharedPtr<Process> process(new Process(system));
|
SharedPtr<Process> process(new Process(system));
|
||||||
|
@ -75,7 +75,7 @@ public:
|
|||||||
|
|
||||||
static constexpr std::size_t RANDOM_ENTROPY_SIZE = 4;
|
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 {
|
std::string GetTypeName() const override {
|
||||||
return "Process";
|
return "Process";
|
||||||
|
Loading…
Reference in New Issue
Block a user