aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/vfs_offset.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-12 16:37:38 -0400
committerLioncash <mathew1800@gmail.com>2018-08-12 16:55:40 -0400
commitcf0a7cd1c16b91fc295edc90a7a1d92d5e056f8a (patch)
treec217767ae3450b79127a6768b582a08211b2d3a9 /src/core/file_sys/vfs_offset.h
parent424e90f0f5e05fb34cfc728b9e12fbfc66ab2fdf (diff)
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.
Diffstat (limited to 'src/core/file_sys/vfs_offset.h')
-rw-r--r--src/core/file_sys/vfs_offset.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/vfs_offset.h b/src/core/file_sys/vfs_offset.h
index 235970dc5..cb92d1570 100644
--- a/src/core/file_sys/vfs_offset.h
+++ b/src/core/file_sys/vfs_offset.h
@@ -15,7 +15,8 @@ namespace FileSys {
// Similar to seeking to an offset.
// If the file is writable, operations that would write past the end of the offset file will expand
// the size of this wrapper.
-struct OffsetVfsFile : public VfsFile {
+class OffsetVfsFile : public VfsFile {
+public:
OffsetVfsFile(std::shared_ptr<VfsFile> file, size_t size, size_t offset = 0,
std::string new_name = "", VirtualDir new_parent = nullptr);