From cdd22edb205d1083a18e7e043be0562cb1c56f1a Mon Sep 17 00:00:00 2001 From: Ivan Morozko Date: Tue, 14 Jan 2025 13:36:16 +0300 Subject: [PATCH] Correct clang-format issues --- src/core/algorithms/dc/FastADC/providers/index_provider.cpp | 4 ++-- src/core/algorithms/dc/FastADC/providers/index_provider.h | 2 +- src/core/algorithms/dc/FastADC/providers/predicate_provider.h | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/algorithms/dc/FastADC/providers/index_provider.cpp b/src/core/algorithms/dc/FastADC/providers/index_provider.cpp index c4121516fb..c816dc657a 100644 --- a/src/core/algorithms/dc/FastADC/providers/index_provider.cpp +++ b/src/core/algorithms/dc/FastADC/providers/index_provider.cpp @@ -5,7 +5,7 @@ namespace algos::fastadc { template T> -size_t IndexProvider::GetIndex(const T& object) { +size_t IndexProvider::GetIndex(T const& object) { auto it = indexes_.find(object); if (it == indexes_.end()) { indexes_[object] = next_index_; @@ -17,7 +17,7 @@ size_t IndexProvider::GetIndex(const T& object) { template T> void IndexProvider::AddAll(std::vector const& objects) { - for (const auto& object : objects) GetIndex(object); + for (auto const& object : objects) GetIndex(object); } template T> diff --git a/src/core/algorithms/dc/FastADC/providers/index_provider.h b/src/core/algorithms/dc/FastADC/providers/index_provider.h index f695d7e65b..2cab376036 100644 --- a/src/core/algorithms/dc/FastADC/providers/index_provider.h +++ b/src/core/algorithms/dc/FastADC/providers/index_provider.h @@ -32,7 +32,7 @@ class IndexProvider { IndexProvider(IndexProvider&&) = default; IndexProvider& operator=(IndexProvider&&) = default; - size_t GetIndex(const T& object); + size_t GetIndex(T const& object); void AddAll(std::vector const& objects); diff --git a/src/core/algorithms/dc/FastADC/providers/predicate_provider.h b/src/core/algorithms/dc/FastADC/providers/predicate_provider.h index 9466069bba..14986890e1 100644 --- a/src/core/algorithms/dc/FastADC/providers/predicate_provider.h +++ b/src/core/algorithms/dc/FastADC/providers/predicate_provider.h @@ -39,7 +39,6 @@ class PredicateProvider { void Clear() { predicates_.clear(); } - }; } // namespace algos::fastadc