mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-20 01:15:08 -05:00
Control: Convert raw pointer parameter into unique_ptr
Raw pointers shouldn't be used as boundaries in scenarios where ownership is being taken.
This commit is contained in:
@@ -20,6 +20,6 @@ public:
|
||||
const std::string name;
|
||||
|
||||
protected:
|
||||
Control(ControlReference* ref, const std::string& name);
|
||||
Control(std::unique_ptr<ControlReference> ref, const std::string& name);
|
||||
};
|
||||
} // namespace ControllerEmu
|
||||
|
||||
Reference in New Issue
Block a user