Lioncash d07d9f3110 Control: Convert raw pointer parameter into unique_ptr
Raw pointers shouldn't be used as boundaries in scenarios where ownership
is being taken.
2017-02-10 19:35:02 -05:00

26 lines
462 B
C++

// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <string>
class ControlReference;
namespace ControllerEmu
{
class Control
{
public:
virtual ~Control();
std::unique_ptr<ControlReference> const control_ref;
const std::string name;
protected:
Control(std::unique_ptr<ControlReference> ref, const std::string& name);
};
} // namespace ControllerEmu