summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-29 18:46:44 -0400
committerLioncash <mathew1800@gmail.com>2019-05-29 18:46:49 -0400
commit246e2a77ceb7fb5ebf05286af07f598b3db40c2b (patch)
tree511f2cca2f5861a5a9bc110fd55702eb3b239605 /Source/Core/InputCommon/ControllerInterface
parent1355b43fd242f20d04b1250c02de355c8e80ac98 (diff)
ControllerInterface/Device: std::move strings in constructor where applicable
Allows callers to move std::string values into the constructor, potentially avoiding copies.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.h b/Source/Core/InputCommon/ControllerInterface/Device.h
index 8281396515..b5a8695629 100644
--- a/Source/Core/InputCommon/ControllerInterface/Device.h
+++ b/Source/Core/InputCommon/ControllerInterface/Device.h
@@ -156,8 +156,8 @@ class DeviceQualifier
{
public:
DeviceQualifier() : cid(-1) {}
- DeviceQualifier(const std::string& _source, const int _id, const std::string& _name)
- : source(_source), cid(_id), name(_name)
+ DeviceQualifier(std::string source_, const int id_, std::string name_)
+ : source(std::move(source_)), cid(id_), name(std::move(name_))
{
}
void FromDevice(const Device* const dev);