Răsfoiți Sursa

core: hid: Mark constructors as explicit

Morph 4 ani în urmă
părinte
comite
04f48f0120
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      src/core/hid/emulated_console.h
  2. 1 1
      src/core/hid/emulated_devices.h

+ 1 - 1
src/core/hid/emulated_console.h

@@ -80,7 +80,7 @@ public:
     /**
     /**
      * Contains all input data within the emulated switch console tablet such as touch and motion
      * Contains all input data within the emulated switch console tablet such as touch and motion
      */
      */
-    EmulatedConsole();
+    explicit EmulatedConsole();
     ~EmulatedConsole();
     ~EmulatedConsole();
 
 
     YUZU_NON_COPYABLE(EmulatedConsole);
     YUZU_NON_COPYABLE(EmulatedConsole);

+ 1 - 1
src/core/hid/emulated_devices.h

@@ -77,7 +77,7 @@ public:
      * Contains all input data related to external devices that aren't necesarily a controller
      * Contains all input data related to external devices that aren't necesarily a controller
      * This includes devices such as the keyboard or mouse
      * This includes devices such as the keyboard or mouse
      */
      */
-    EmulatedDevices();
+    explicit EmulatedDevices();
     ~EmulatedDevices();
     ~EmulatedDevices();
 
 
     YUZU_NON_COPYABLE(EmulatedDevices);
     YUZU_NON_COPYABLE(EmulatedDevices);