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