diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2022-05-13 20:44:52 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2022-05-14 20:41:31 +0200 |
commit | 9043648f29f9208c9b3e4939defd4e83228d8076 (patch) | |
tree | 7baf66e5e9bd4eb28434e777600641cd60a16e0f | |
parent | 0c7bdcc86a538f94a44e073f4c51b126de32eb7f (diff) | |
download | ccache-9043648f29f9208c9b3e4939defd4e83228d8076.tar.gz |
chore: Constify core::Manifest::add_result parameter
-rw-r--r-- | src/core/Manifest.cpp | 9 | ||||
-rw-r--r-- | src/core/Manifest.hpp | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/core/Manifest.cpp b/src/core/Manifest.cpp index 0583d1a6..f9301e46 100644 --- a/src/core/Manifest.cpp +++ b/src/core/Manifest.cpp @@ -137,10 +137,11 @@ Manifest::look_up_result_digest(const Context& ctx) const } bool -Manifest::add_result(const Digest& result_key, - std::unordered_map<std::string, Digest>& included_files, - const time_t time_of_compilation, - const bool save_timestamp) +Manifest::add_result( + const Digest& result_key, + const std::unordered_map<std::string, Digest>& included_files, + const time_t time_of_compilation, + const bool save_timestamp) { if (m_results.size() > k_max_manifest_entries) { // Normally, there shouldn't be many result entries in the manifest since diff --git a/src/core/Manifest.hpp b/src/core/Manifest.hpp index bb9e26a4..78c16a64 100644 --- a/src/core/Manifest.hpp +++ b/src/core/Manifest.hpp @@ -1,4 +1,4 @@ -// Copyright (C) 2009-2021 Joel Rosdahl and other contributors +// Copyright (C) 2009-2022 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -45,7 +45,7 @@ public: nonstd::optional<Digest> look_up_result_digest(const Context& ctx) const; bool add_result(const Digest& result_key, - std::unordered_map<std::string, Digest>& included_files, + const std::unordered_map<std::string, Digest>& included_files, time_t time_of_compilation, bool save_timestamp); size_t serialized_size() const; |