diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-17 20:28:16 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-17 20:51:54 -0400 |
commit | 119b47f366df61569113395f2ee2bc4df5b8a2ad (patch) | |
tree | 86f2bea6f6681b7e30a634f44b47a478f26ba170 /src/core | |
parent | 7dee60d7d24dabcc2c52c8c2135f1c89adb57ff6 (diff) |
controller_base: Default the base class constructor and destructor in the cpp file
The destructor doesn't need to be a pure-virtual function.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/hid/controllers/controller_base.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/hid/controllers/controller_base.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/controller_base.cpp b/src/core/hle/service/hid/controllers/controller_base.cpp index 1625e9c3d..0993a7815 100644 --- a/src/core/hle/service/hid/controllers/controller_base.cpp +++ b/src/core/hle/service/hid/controllers/controller_base.cpp @@ -5,6 +5,8 @@ #include "core/hle/service/hid/controllers/controller_base.h" namespace Service::HID { + +ControllerBase::ControllerBase() = default; ControllerBase::~ControllerBase() = default; void ControllerBase::ActivateController() { diff --git a/src/core/hle/service/hid/controllers/controller_base.h b/src/core/hle/service/hid/controllers/controller_base.h index fa98e2354..f0e092b1b 100644 --- a/src/core/hle/service/hid/controllers/controller_base.h +++ b/src/core/hle/service/hid/controllers/controller_base.h @@ -10,8 +10,8 @@ namespace Service::HID { class ControllerBase { public: - ControllerBase() = default; - virtual ~ControllerBase() = 0; + ControllerBase(); + virtual ~ControllerBase(); // Called when the controller is initialized virtual void OnInit() = 0; |