Explorar el Código

vfs: Make VfsFilesystem constructor explicit

Makes it consistent with the other VFS interfaces and prevents implicit
construction.
Lioncash hace 8 años
padre
commit
b82b093108
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/file_sys/vfs.h

+ 1 - 1
src/core/file_sys/vfs.h

@@ -36,7 +36,7 @@ enum class VfsEntryType {
 // functionality, they will need to override.
 class VfsFilesystem : NonCopyable {
 public:
-    VfsFilesystem(VirtualDir root);
+    explicit VfsFilesystem(VirtualDir root);
     virtual ~VfsFilesystem();
 
     // Gets the friendly name for the filesystem.