There was an error fetching the commit references. Please try again later.
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.
Showing
- src/core/core.cpp 0 additions, 1 deletionsrc/core/core.cpp
- src/core/hle/service/sm/controller.cpp 2 additions, 0 deletionssrc/core/hle/service/sm/controller.cpp
- src/core/hle/service/sm/controller.h 1 addition, 1 deletionsrc/core/hle/service/sm/controller.h
- src/core/hle/service/sm/sm.cpp 1 addition, 0 deletionssrc/core/hle/service/sm/sm.cpp
- src/core/hle/service/sm/sm.h 1 addition, 0 deletionssrc/core/hle/service/sm/sm.h
Please register or sign in to comment