From: Joel Rosdahl Date: Sat, 8 Jun 2024 18:43:00 +0000 (+0200) Subject: refactor: Convert Config::m_stats_log to fs::path X-Git-Tag: v4.11~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03fbe07076822b38000fe5b82d3fdfe9f3acfcaa;p=thirdparty%2Fccache.git refactor: Convert Config::m_stats_log to fs::path --- diff --git a/src/ccache/Config.cpp b/src/ccache/Config.cpp index ee08bf5a..89e1a056 100644 --- a/src/ccache/Config.cpp +++ b/src/ccache/Config.cpp @@ -884,7 +884,7 @@ Config::get_string_value(const std::string& key) const return format_bool(m_stats); case ConfigItem::stats_log: - return m_stats_log; + return m_stats_log.string(); case ConfigItem::temporary_dir: return m_temporary_dir; diff --git a/src/ccache/Config.hpp b/src/ccache/Config.hpp index 809ecc4b..8c91a690 100644 --- a/src/ccache/Config.hpp +++ b/src/ccache/Config.hpp @@ -92,7 +92,7 @@ public: bool run_second_cpp() const; core::Sloppiness sloppiness() const; bool stats() const; - const std::string& stats_log() const; + const std::filesystem::path& stats_log() const; const std::string& namespace_() const; const std::string& temporary_dir() const; std::optional umask() const; @@ -212,7 +212,7 @@ private: std::string m_remote_storage; core::Sloppiness m_sloppiness; bool m_stats = true; - std::string m_stats_log; + std::filesystem::path m_stats_log; std::string m_namespace; std::string m_temporary_dir; std::optional m_umask; @@ -485,7 +485,7 @@ Config::stats() const return m_stats; } -inline const std::string& +inline const std::filesystem::path& Config::stats_log() const { return m_stats_log;