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/vi/vi.cpp | 4 ++-- src/core/hle/service/vi/vi.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/hle/service/vi') diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index eccee6e33..3a69b85f9 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -579,7 +579,7 @@ private: class ISystemDisplayService final : public ServiceFramework { public: - ISystemDisplayService() : ServiceFramework("ISystemDisplayService") { + explicit ISystemDisplayService() : ServiceFramework("ISystemDisplayService") { static const FunctionInfo functions[] = { {1200, nullptr, "GetZOrderCountMin"}, {1202, nullptr, "GetZOrderCountMax"}, @@ -777,7 +777,7 @@ private: class IApplicationDisplayService final : public ServiceFramework { public: - IApplicationDisplayService(std::shared_ptr nv_flinger); + explicit IApplicationDisplayService(std::shared_ptr nv_flinger); ~IApplicationDisplayService() = default; private: diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.h index e8bda01d7..92f5b6059 100644 --- a/src/core/hle/service/vi/vi.h +++ b/src/core/hle/service/vi/vi.h @@ -24,8 +24,8 @@ class Module final { public: class Interface : public ServiceFramework { public: - Interface(std::shared_ptr module, const char* name, - std::shared_ptr nv_flinger); + explicit Interface(std::shared_ptr module, const char* name, + std::shared_ptr nv_flinger); void GetDisplayService(Kernel::HLERequestContext& ctx); -- cgit v1.2.3