summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/Control/Input.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-02-10 19:31:21 -0500
committerLioncash <mathew1800@gmail.com>2017-02-10 19:35:02 -0500
commitd07d9f3110c1ee425872eb349a5ddd6a75941e39 (patch)
treebf34b2e8a82d972bb3b4d3ad6890fe040229039a /Source/Core/InputCommon/ControllerEmu/Control/Input.cpp
parentf6d364e37b35c7743d64cade8e7367457b372dfc (diff)
Control: Convert raw pointer parameter into unique_ptr
Raw pointers shouldn't be used as boundaries in scenarios where ownership is being taken.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/Control/Input.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/Control/Input.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/Control/Input.cpp b/Source/Core/InputCommon/ControllerEmu/Control/Input.cpp
index 0f2e400e56..8ff04e68a1 100644
--- a/Source/Core/InputCommon/ControllerEmu/Control/Input.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/Control/Input.cpp
@@ -4,12 +4,13 @@
#include "InputCommon/ControllerEmu/Control/Input.h"
+#include <memory>
#include <string>
#include "InputCommon/ControlReference/ControlReference.h"
namespace ControllerEmu
{
-Input::Input(const std::string& name_) : Control(new InputReference, name_)
+Input::Input(const std::string& name_) : Control(std::make_unique<InputReference>(), name_)
{
}
} // namespace ControllerEmu