summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/Control/Control.cpp
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2017-02-15 11:26:53 -0500
committerGitHub <noreply@github.com>2017-02-15 11:26:53 -0500
commit5a53763c1a18d1841054ee973aa34d5c0d04d42f (patch)
treef153d26ca7b8a3b1c9547da382299791ad71ecbd /Source/Core/InputCommon/ControllerEmu/Control/Control.cpp
parent3d1f00e98d14481714e858e394b4a6bb1d5082d1 (diff)
parentd07d9f3110c1ee425872eb349a5ddd6a75941e39 (diff)
Merge pull request #4892 from lioncash/control
Control: Convert raw pointer parameter into unique_ptr
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Control/Control.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/Control/Control.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Control/Control.cpp b/Source/Core/InputCommon/ControllerEmu/Control/Control.cpp
index 00f9a71069..56c4cba12d 100644
--- a/Source/Core/InputCommon/ControllerEmu/Control/Control.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/Control/Control.cpp
@@ -3,11 +3,14 @@
// Refer to the license.txt file included.
#include "InputCommon/ControllerEmu/Control/Control.h"
+
+#include <utility>
#include "InputCommon/ControlReference/ControlReference.h"
namespace ControllerEmu
{
-Control::Control(ControlReference* ref, const std::string& name_) : control_ref(ref), name(name_)
+Control::Control(std::unique_ptr<ControlReference> ref, const std::string& name_)
+ : control_ref(std::move(ref)), name(name_)
{
}