mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-25 20:56:51 +00:00
Merge pull request #4465 from lioncash/move
kernel/shared_memory: std::move the string parameter in SetName()
This commit is contained in:
commit
8d92278cc1
|
@ -5,6 +5,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include "common/common_types.h"
|
||||
#include "core/hle/kernel/object.h"
|
||||
#include "core/hle/kernel/process.h"
|
||||
|
@ -21,7 +22,7 @@ public:
|
|||
return name;
|
||||
}
|
||||
void SetName(std::string name) {
|
||||
this->name = name;
|
||||
this->name = std::move(name);
|
||||
}
|
||||
|
||||
static const HandleType HANDLE_TYPE = HandleType::SharedMemory;
|
||||
|
|
Loading…
Reference in a new issue