Просмотр исходного кода

vfs: Make VfsFilesystem constructor explicit

Makes it consistent with the other VFS interfaces and prevents implicit
construction.
Lioncash 8 лет назад
Родитель
Сommit
b82b093108
1 измененных файлов с 1 добавлено и 1 удалено
  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.
 // functionality, they will need to override.
 class VfsFilesystem : NonCopyable {
 class VfsFilesystem : NonCopyable {
 public:
 public:
-    VfsFilesystem(VirtualDir root);
+    explicit VfsFilesystem(VirtualDir root);
     virtual ~VfsFilesystem();
     virtual ~VfsFilesystem();
 
 
     // Gets the friendly name for the filesystem.
     // Gets the friendly name for the filesystem.