Przeglądaj źródła

vfs: Make VfsFilesystem constructor explicit

Makes it consistent with the other VFS interfaces and prevents implicit
construction.
Lioncash 8 lat temu
rodzic
commit
b82b093108
1 zmienionych plików z 1 dodań i 1 usunięć
  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.