diff --git a/Source/Core/Core/SysConf.cpp b/Source/Core/Core/SysConf.cpp index b4e0b2834a..1efd4a2244 100644 --- a/Source/Core/Core/SysConf.cpp +++ b/Source/Core/Core/SysConf.cpp @@ -211,14 +211,14 @@ bool SysConf::Save() const return result == IOS::HLE::FS::ResultCode::Success; } -SysConf::Entry::Entry(Type type_, const std::string& name_) : type(type_), name(name_) +SysConf::Entry::Entry(Type type_, std::string name_) : type(type_), name(std::move(name_)) { if (type != Type::SmallArray && type != Type::BigArray) bytes.resize(GetNonArrayEntrySize(type)); } -SysConf::Entry::Entry(Type type_, const std::string& name_, std::vector bytes_) - : type(type_), name(name_), bytes(std::move(bytes_)) +SysConf::Entry::Entry(Type type_, std::string name_, std::vector bytes_) + : type(type_), name(std::move(name_)), bytes(std::move(bytes_)) { } diff --git a/Source/Core/Core/SysConf.h b/Source/Core/Core/SysConf.h index 5eeeddb121..cf86a3e9c5 100644 --- a/Source/Core/Core/SysConf.h +++ b/Source/Core/Core/SysConf.h @@ -47,8 +47,8 @@ public: ByteBool = 7, }; - Entry(Type type_, const std::string& name_); - Entry(Type type_, const std::string& name_, std::vector bytes_); + Entry(Type type_, std::string name_); + Entry(Type type_, std::string name_, std::vector bytes_); // Intended for use with the non array types. template