From cf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 12 Aug 2018 16:37:38 -0400 Subject: vfs: Make type hierarchy objects classes instead of structs struct should be used when the data type is very simple or otherwise has no invariants associated with it. Given these are used to form a hierarchy, class should be used instead. --- src/core/file_sys/vfs_vector.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/file_sys/vfs_vector.h') diff --git a/src/core/file_sys/vfs_vector.h b/src/core/file_sys/vfs_vector.h index ba469647b..b3b468233 100644 --- a/src/core/file_sys/vfs_vector.h +++ b/src/core/file_sys/vfs_vector.h @@ -10,7 +10,8 @@ namespace FileSys { // An implementation of VfsDirectory that maintains two vectors for subdirectories and files. // Vector data is supplied upon construction. -struct VectorVfsDirectory : public VfsDirectory { +class VectorVfsDirectory : public VfsDirectory { +public: explicit VectorVfsDirectory(std::vector files = {}, std::vector dirs = {}, VirtualDir parent = nullptr, std::string name = ""); -- cgit v1.2.3