summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-11 17:42:05 +0200
committerGitHub <noreply@github.com>2018-09-11 17:42:05 +0200
commit1470b85af9027106f16c888bb7f6a97d44fad304 (patch)
tree47ec1878cfed0a96d2cd000dee1f09c63b8d30f4 /src/core/hle/service/apm
parentMerge pull request #1292 from ogniK5377/renderdoc-fix (diff)
parenthle/service: Default constructors and destructors in the cpp file where applicable (diff)
downloadyuzu-1470b85af9027106f16c888bb7f6a97d44fad304.tar
yuzu-1470b85af9027106f16c888bb7f6a97d44fad304.tar.gz
yuzu-1470b85af9027106f16c888bb7f6a97d44fad304.tar.bz2
yuzu-1470b85af9027106f16c888bb7f6a97d44fad304.tar.lz
yuzu-1470b85af9027106f16c888bb7f6a97d44fad304.tar.xz
yuzu-1470b85af9027106f16c888bb7f6a97d44fad304.tar.zst
yuzu-1470b85af9027106f16c888bb7f6a97d44fad304.zip
Diffstat (limited to 'src/core/hle/service/apm')
-rw-r--r--src/core/hle/service/apm/apm.cpp3
-rw-r--r--src/core/hle/service/apm/apm.h4
-rw-r--r--src/core/hle/service/apm/interface.cpp4
-rw-r--r--src/core/hle/service/apm/interface.h3
4 files changed, 11 insertions, 3 deletions
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp
index 4109cb7f7..f3c09bbb1 100644
--- a/src/core/hle/service/apm/apm.cpp
+++ b/src/core/hle/service/apm/apm.cpp
@@ -9,6 +9,9 @@
namespace Service::APM {
+Module::Module() = default;
+Module::~Module() = default;
+
void InstallInterfaces(SM::ServiceManager& service_manager) {
auto module_ = std::make_shared<Module>();
std::make_shared<APM>(module_, "apm")->InstallAsService(service_manager);
diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.h
index 90a80d51b..4d7d5bb7c 100644
--- a/src/core/hle/service/apm/apm.h
+++ b/src/core/hle/service/apm/apm.h
@@ -15,8 +15,8 @@ enum class PerformanceMode : u8 {
class Module final {
public:
- Module() = default;
- ~Module() = default;
+ Module();
+ ~Module();
};
/// Registers all AM services with the specified service manager.
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cpp
index 4cd8132f5..c22bd3859 100644
--- a/src/core/hle/service/apm/interface.cpp
+++ b/src/core/hle/service/apm/interface.cpp
@@ -70,6 +70,8 @@ APM::APM(std::shared_ptr<Module> apm, const char* name)
RegisterHandlers(functions);
}
+APM::~APM() = default;
+
void APM::OpenSession(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(RESULT_SUCCESS);
@@ -93,6 +95,8 @@ APM_Sys::APM_Sys() : ServiceFramework{"apm:sys"} {
RegisterHandlers(functions);
}
+APM_Sys::~APM_Sys() = default;
+
void APM_Sys::GetPerformanceEvent(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(RESULT_SUCCESS);
diff --git a/src/core/hle/service/apm/interface.h b/src/core/hle/service/apm/interface.h
index d14264ad7..773541aa4 100644
--- a/src/core/hle/service/apm/interface.h
+++ b/src/core/hle/service/apm/interface.h
@@ -11,7 +11,7 @@ namespace Service::APM {
class APM final : public ServiceFramework<APM> {
public:
explicit APM(std::shared_ptr<Module> apm, const char* name);
- ~APM() = default;
+ ~APM() override;
private:
void OpenSession(Kernel::HLERequestContext& ctx);
@@ -22,6 +22,7 @@ private:
class APM_Sys final : public ServiceFramework<APM_Sys> {
public:
explicit APM_Sys();
+ ~APM_Sys() override;
private:
void GetPerformanceEvent(Kernel::HLERequestContext& ctx);