diff --git a/include/interface/platform/File.h b/include/interface/platform/File.h index 8a12a53784..7512c840ec 100644 --- a/include/interface/platform/File.h +++ b/include/interface/platform/File.h @@ -27,6 +27,8 @@ struct File { virtual void rewind() = 0; virtual auto size() -> size_t = 0; + + [[nodiscard]] virtual auto is_open() const -> bool = 0; }; } // namespace leka::interface diff --git a/libs/FileSystemKit/include/FileSystemKit.h b/libs/FileSystemKit/include/FileSystemKit.h index 61bbd31c43..1389855cde 100644 --- a/libs/FileSystemKit/include/FileSystemKit.h +++ b/libs/FileSystemKit/include/FileSystemKit.h @@ -32,7 +32,7 @@ class FileSystemKit void rewind() final; auto size() -> size_t final; - [[nodiscard]] auto is_open() const -> bool; + [[nodiscard]] auto is_open() const -> bool final; private: std::unique_ptr _file {nullptr, fclose};