From 3fba07dba53ae41d915ba4c3304e31f0b44893fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Feb 2017 01:40:34 +0300 Subject: Add constructor and final into virtfsfuncs. --- src/fs/virtfsfuncs.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/fs/virtfsfuncs.h b/src/fs/virtfsfuncs.h index 1b17ac5db..8e0629dcf 100644 --- a/src/fs/virtfsfuncs.h +++ b/src/fs/virtfsfuncs.h @@ -29,8 +29,19 @@ struct VirtFile; -struct VirtFsFuncs +struct VirtFsFuncs final { + VirtFsFuncs() : + close(nullptr), + read(nullptr), + write(nullptr), + fileLength(nullptr), + tell(nullptr), + seek(nullptr), + eof(nullptr) + { + } + int (*close) (VirtFile *restrict const file); int64_t (*read) (VirtFile *restrict const file, void *restrict const buffer, -- cgit v1.2.3-60-g2f50