Explorar o código

vfs: Make VfsFilesystem constructor explicit

Makes it consistent with the other VFS interfaces and prevents implicit
construction.
Lioncash %!s(int64=8) %!d(string=hai) anos
pai
achega
b82b093108
Modificáronse 1 ficheiros con 1 adicións e 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.