diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-06 14:32:25 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-06 14:38:39 -0400 |
| commit | 56ab608044a6161118e96ea7d2c048306fad9c5e (patch) | |
| tree | 4d1cca102962b2997147d4b5d89f1495996bda1a /src/core/hle/service/sm/controller.cpp | |
| parent | fbaefc47a0250864f079b846a2d800f2a0342c73 (diff) | |
core/core: Remove unnecessary sm/controller include
The only reason this include was necessary, was because the constructor
wasn't defaulted in the cpp file and the compiler would inline it
wherever it was used. However, given Controller is forward declared, all
those inlined constructors would see an incomplete type, causing a
compilation failure. So, we just place the constructor in the cpp file,
where it can see the complete type definition, allowing us to remove
this include.
Diffstat (limited to 'src/core/hle/service/sm/controller.cpp')
| -rw-r--r-- | src/core/hle/service/sm/controller.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cpp index 1cef73216..cdf328a26 100644 --- a/src/core/hle/service/sm/controller.cpp +++ b/src/core/hle/service/sm/controller.cpp @@ -57,4 +57,6 @@ Controller::Controller() : ServiceFramework("IpcController") { RegisterHandlers(functions); } +Controller::~Controller() = default; + } // namespace Service::SM |
