瀏覽代碼

vfs: Make VfsFilesystem constructor explicit

Makes it consistent with the other VFS interfaces and prevents implicit
construction.
Lioncash 8 年之前
父節點
當前提交
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.
 class VfsFilesystem : NonCopyable {
 public:
-    VfsFilesystem(VirtualDir root);
+    explicit VfsFilesystem(VirtualDir root);
     virtual ~VfsFilesystem();
 
     // Gets the friendly name for the filesystem.