summaryrefslogtreecommitdiff
path: root/src/other_tools/ops_maps
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 12:56:16 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 15:41:50 +0200
commit13e86fbbd0986a5f231f4f6bd5fd2423ba75f170 (patch)
treec5aa38fa2c87b0fcfda3a6fd3cc10fc98d1d1ac9 /src/other_tools/ops_maps
parentab9ff1405f9dd27addb6106e6d6e3ea45c730cc4 (diff)
downloadjustbuild-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.cpp2
-rw-r--r--src/other_tools/ops_maps/critical_git_op_map.hpp4
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;