From 46202e984e176241fd5a2f766907035e87198c99 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 17 Oct 2018 20:34:25 -0400 Subject: hid/controller: Default the destructors of all controller types in the cpp file These classes are non-trivial and are definitely going to be changed in the future, so we default these to prevent issues with forward declarations, and to keep the compiler from inlining tear-down code. --- src/core/hle/service/hid/controllers/stubbed.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/hle/service/hid/controllers/stubbed.cpp') diff --git a/src/core/hle/service/hid/controllers/stubbed.cpp b/src/core/hle/service/hid/controllers/stubbed.cpp index 3a13d5991..f7807072a 100644 --- a/src/core/hle/service/hid/controllers/stubbed.cpp +++ b/src/core/hle/service/hid/controllers/stubbed.cpp @@ -11,6 +11,7 @@ namespace Service::HID { Controller_Stubbed::Controller_Stubbed() = default; +Controller_Stubbed::~Controller_Stubbed() = default; void Controller_Stubbed::OnInit() {} -- cgit v1.2.3 From 452aa30cb72d19e62556d4927f575b4b48e20c8b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 17 Oct 2018 20:47:12 -0400 Subject: hid/controller: Remove unused header inclusions swap.h only needs to be present in the header for the type aliases and definitions, it's not actually needed in the cpp files though. input.h is just unused entirely in xpad.h --- src/core/hle/service/hid/controllers/stubbed.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/core/hle/service/hid/controllers/stubbed.cpp') diff --git a/src/core/hle/service/hid/controllers/stubbed.cpp b/src/core/hle/service/hid/controllers/stubbed.cpp index f7807072a..02fcfadd9 100644 --- a/src/core/hle/service/hid/controllers/stubbed.cpp +++ b/src/core/hle/service/hid/controllers/stubbed.cpp @@ -4,7 +4,6 @@ #include #include "common/common_types.h" -#include "common/swap.h" #include "core/core_timing.h" #include "core/hle/service/hid/controllers/stubbed.h" -- cgit v1.2.3