diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 12:56:16 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | 13e86fbbd0986a5f231f4f6bd5fd2423ba75f170 (patch) | |
tree | c5aa38fa2c87b0fcfda3a6fd3cc10fc98d1d1ac9 /src/other_tools/ops_maps | |
parent | ab9ff1405f9dd27addb6106e6d6e3ea45c730cc4 (diff) | |
download | justbuild-13e86fbbd0986a5f231f4f6bd5fd2423ba75f170.tar.gz |
Name global constants using kCamelCase.
Diffstat (limited to 'src/other_tools/ops_maps')
-rw-r--r-- | src/other_tools/ops_maps/critical_git_op_map.cpp | 2 | ||||
-rw-r--r-- | src/other_tools/ops_maps/critical_git_op_map.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/other_tools/ops_maps/critical_git_op_map.cpp b/src/other_tools/ops_maps/critical_git_op_map.cpp index cbab7c42..b7981db8 100644 --- a/src/other_tools/ops_maps/critical_git_op_map.cpp +++ b/src/other_tools/ops_maps/critical_git_op_map.cpp @@ -15,7 +15,7 @@ #include "src/other_tools/ops_maps/critical_git_op_map.hpp" // define the mapping to actual operations being called -GitOpKeyMap const GitOpKey::map_ = { +GitOpKeyMap const GitOpKey::kMap = { {GitOpType::INITIAL_COMMIT, CriticalGitOps::GitInitialCommit}, {GitOpType::ENSURE_INIT, CriticalGitOps::GitEnsureInit}, {GitOpType::KEEP_TAG, CriticalGitOps::GitKeepTag}, diff --git a/src/other_tools/ops_maps/critical_git_op_map.hpp b/src/other_tools/ops_maps/critical_git_op_map.hpp index 73ee6a70..5832462a 100644 --- a/src/other_tools/ops_maps/critical_git_op_map.hpp +++ b/src/other_tools/ops_maps/critical_git_op_map.hpp @@ -40,7 +40,7 @@ struct GitOpKey { [[nodiscard]] auto operation(GitOpParams const& params, AsyncMapConsumerLoggerPtr const& logger) const -> GitOpValue { - return map_.at(op_type)(params, logger); + return kMap.at(op_type)(params, logger); } [[nodiscard]] auto operator==(GitOpKey const& other) const -> bool { @@ -48,7 +48,7 @@ struct GitOpKey { } private: - static GitOpKeyMap const map_; + static GitOpKeyMap const kMap; }; class CriticalGitOpGuard; |