Explorar o código

nro: Make constructor explicit

Makes it consistent with the other Apploader constructors, and prevents
implicit conversions.
Lioncash %!s(int64=8) %!d(string=hai) anos
pai
achega
ac8133b9ee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/loader/nro.h

+ 1 - 1
src/core/loader/nro.h

@@ -16,7 +16,7 @@ namespace Loader {
 /// Loads an NRO file
 class AppLoader_NRO final : public AppLoader, Linker {
 public:
-    AppLoader_NRO(FileSys::VirtualFile file);
+    explicit AppLoader_NRO(FileSys::VirtualFile file);
 
     /**
      * Returns the type of the file