From ce0e1358fc9184f46a3f6955b10f603b7a02b0aa Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 19 Dec 2024 13:16:13 -0600 Subject: [PATCH] refactor --- repertory/librepertory/include/file_manager/file_manager.hpp | 2 +- repertory/librepertory/include/file_manager/i_file_manager.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/repertory/librepertory/include/file_manager/file_manager.hpp b/repertory/librepertory/include/file_manager/file_manager.hpp index 5d668441..85a28570 100644 --- a/repertory/librepertory/include/file_manager/file_manager.hpp +++ b/repertory/librepertory/include/file_manager/file_manager.hpp @@ -119,7 +119,7 @@ public: open_file_data ofd, std::uint64_t &handle, std::shared_ptr &file) -> api_error; - auto evict_file(const std::string &api_path) -> bool override; + [[nodiscard]] auto evict_file(const std::string &api_path) -> bool override; [[nodiscard]] auto get_directory_items(const std::string &api_path) const -> directory_item_list override; diff --git a/repertory/librepertory/include/file_manager/i_file_manager.hpp b/repertory/librepertory/include/file_manager/i_file_manager.hpp index c1c562f0..972406ab 100644 --- a/repertory/librepertory/include/file_manager/i_file_manager.hpp +++ b/repertory/librepertory/include/file_manager/i_file_manager.hpp @@ -31,7 +31,8 @@ class i_file_manager { INTERFACE_SETUP(i_file_manager); public: - virtual auto evict_file(const std::string &api_path) -> bool = 0; + [[nodiscard]] virtual auto evict_file(const std::string &api_path) + -> bool = 0; [[nodiscard]] virtual auto get_directory_items(const std::string &api_path) const