summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-10-17 20:28:16 -0400
committerGravatar Lioncash2018-10-17 20:51:54 -0400
commit119b47f366df61569113395f2ee2bc4df5b8a2ad (patch)
tree86f2bea6f6681b7e30a634f44b47a478f26ba170 /src
parentMerge pull request #1444 from ogniK5377/better-hid (diff)
downloadyuzu-119b47f366df61569113395f2ee2bc4df5b8a2ad.tar.gz
yuzu-119b47f366df61569113395f2ee2bc4df5b8a2ad.tar.xz
yuzu-119b47f366df61569113395f2ee2bc4df5b8a2ad.zip
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')
-rw-r--r--src/core/hle/service/hid/controllers/controller_base.cpp2
-rw-r--r--src/core/hle/service/hid/controllers/controller_base.h4
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 @@
5#include "core/hle/service/hid/controllers/controller_base.h" 5#include "core/hle/service/hid/controllers/controller_base.h"
6 6
7namespace Service::HID { 7namespace Service::HID {
8
9ControllerBase::ControllerBase() = default;
8ControllerBase::~ControllerBase() = default; 10ControllerBase::~ControllerBase() = default;
9 11
10void ControllerBase::ActivateController() { 12void 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 @@
10namespace Service::HID { 10namespace Service::HID {
11class ControllerBase { 11class ControllerBase {
12public: 12public:
13 ControllerBase() = default; 13 ControllerBase();
14 virtual ~ControllerBase() = 0; 14 virtual ~ControllerBase();
15 15
16 // Called when the controller is initialized 16 // Called when the controller is initialized
17 virtual void OnInit() = 0; 17 virtual void OnInit() = 0;