From c061c2bf3c579deb75f9da310f53652db9ef91c5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 19 Jul 2018 12:05:48 -0400 Subject: hle/service: Make constructors explicit where applicable Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services. --- src/core/hle/service/am/am.h | 2 +- src/core/hle/service/am/applet_ae.cpp | 2 +- src/core/hle/service/am/applet_ae.h | 2 +- src/core/hle/service/am/applet_oe.cpp | 2 +- src/core/hle/service/am/applet_oe.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/hle/service/am') diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index 1da79fd01..8f4f98346 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h @@ -72,7 +72,7 @@ public: class ISelfController final : public ServiceFramework { public: - ISelfController(std::shared_ptr nvflinger); + explicit ISelfController(std::shared_ptr nvflinger); private: void SetFocusHandlingMode(Kernel::HLERequestContext& ctx); diff --git a/src/core/hle/service/am/applet_ae.cpp b/src/core/hle/service/am/applet_ae.cpp index 180057ec2..7cebc918a 100644 --- a/src/core/hle/service/am/applet_ae.cpp +++ b/src/core/hle/service/am/applet_ae.cpp @@ -12,7 +12,7 @@ namespace Service::AM { class ILibraryAppletProxy final : public ServiceFramework { public: - ILibraryAppletProxy(std::shared_ptr nvflinger) + explicit ILibraryAppletProxy(std::shared_ptr nvflinger) : ServiceFramework("ILibraryAppletProxy"), nvflinger(std::move(nvflinger)) { static const FunctionInfo functions[] = { {0, &ILibraryAppletProxy::GetCommonStateGetter, "GetCommonStateGetter"}, diff --git a/src/core/hle/service/am/applet_ae.h b/src/core/hle/service/am/applet_ae.h index f3a96651e..bdc57b9bc 100644 --- a/src/core/hle/service/am/applet_ae.h +++ b/src/core/hle/service/am/applet_ae.h @@ -17,7 +17,7 @@ namespace AM { class AppletAE final : public ServiceFramework { public: - AppletAE(std::shared_ptr nvflinger); + explicit AppletAE(std::shared_ptr nvflinger); ~AppletAE() = default; private: diff --git a/src/core/hle/service/am/applet_oe.cpp b/src/core/hle/service/am/applet_oe.cpp index 278259eda..beea7d19b 100644 --- a/src/core/hle/service/am/applet_oe.cpp +++ b/src/core/hle/service/am/applet_oe.cpp @@ -12,7 +12,7 @@ namespace Service::AM { class IApplicationProxy final : public ServiceFramework { public: - IApplicationProxy(std::shared_ptr nvflinger) + explicit IApplicationProxy(std::shared_ptr nvflinger) : ServiceFramework("IApplicationProxy"), nvflinger(std::move(nvflinger)) { static const FunctionInfo functions[] = { {0, &IApplicationProxy::GetCommonStateGetter, "GetCommonStateGetter"}, diff --git a/src/core/hle/service/am/applet_oe.h b/src/core/hle/service/am/applet_oe.h index d2ab44c67..c52e2a322 100644 --- a/src/core/hle/service/am/applet_oe.h +++ b/src/core/hle/service/am/applet_oe.h @@ -17,7 +17,7 @@ namespace AM { class AppletOE final : public ServiceFramework { public: - AppletOE(std::shared_ptr nvflinger); + explicit AppletOE(std::shared_ptr nvflinger); ~AppletOE() = default; private: -- cgit v1.2.3