From c9325cea0aa43f328644157dee4eafe3d7b45e6f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 15:34:56 +0200 Subject: Name local variables using lower_case ...and private members using lower_case_ --- src/buildtool/common/git_hashes_converter.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/buildtool/common/git_hashes_converter.hpp') diff --git a/src/buildtool/common/git_hashes_converter.hpp b/src/buildtool/common/git_hashes_converter.hpp index d1180244..52fd1283 100644 --- a/src/buildtool/common/git_hashes_converter.hpp +++ b/src/buildtool/common/git_hashes_converter.hpp @@ -45,7 +45,7 @@ class GitHashesConverter final { std::string const& repo) -> compat_hash { { - std::shared_lock lock_{mutex_}; + std::shared_lock lock{mutex_}; auto it = git_to_compatible_.find(git_hash); if (it != git_to_compatible_.end()) { return it->second; @@ -54,7 +54,7 @@ class GitHashesConverter final { // This is only used in compatible mode. HashFunction const hash_function{HashFunction::Type::PlainSHA256}; auto compatible_hash = hash_function.PlainHashData(data).HexString(); - std::unique_lock lock_{mutex_}; + std::unique_lock lock{mutex_}; git_to_compatible_[git_hash] = compatible_hash; compatible_to_git_[compatible_hash] = {git_hash, repo}; return compatible_hash; @@ -62,7 +62,7 @@ class GitHashesConverter final { [[nodiscard]] auto GetGitEntry(std::string const& compatible_hash) -> std::optional> { - std::shared_lock lock_{mutex_}; + std::shared_lock lock{mutex_}; auto it = compatible_to_git_.find(compatible_hash); if (it != compatible_to_git_.end()) { return it->second; -- cgit v1.2.3