Răsfoiți Sursa

applet: Make constructor protected

Considering the class is abstract, there's no need to make the constructor
public.
Lioncash 9 ani în urmă
părinte
comite
d3f4fd1777
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/core/hle/applets/applet.h

+ 2 - 1
src/core/hle/applets/applet.h

@@ -14,7 +14,6 @@ namespace Applets {
 class Applet {
 public:
     virtual ~Applet() {}
-    Applet(Service::APT::AppletId id) : id(id) {}
 
     /**
      * Creates an instance of the Applet subclass identified by the parameter.
@@ -56,6 +55,8 @@ public:
     virtual void Update() = 0;
 
 protected:
+    explicit Applet(Service::APT::AppletId id) : id(id) {}
+
     /**
      * Handles the Applet start event, triggered from the application.
      * @param parameter Parameter data to handle.