Skip to content

Commit

Permalink
Correct clang-format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ol-imorozko committed Jan 14, 2025
1 parent 88a7b1f commit cdd22ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/algorithms/dc/FastADC/providers/index_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace algos::fastadc {

template <std::totally_ordered<> T>
size_t IndexProvider<T>::GetIndex(const T& object) {
size_t IndexProvider<T>::GetIndex(T const& object) {
auto it = indexes_.find(object);
if (it == indexes_.end()) {
indexes_[object] = next_index_;
Expand All @@ -17,7 +17,7 @@ size_t IndexProvider<T>::GetIndex(const T& object) {

template <std::totally_ordered<> T>
void IndexProvider<T>::AddAll(std::vector<T> const& objects) {
for (const auto& object : objects) GetIndex(object);
for (auto const& object : objects) GetIndex(object);
}

template <std::totally_ordered<> T>
Expand Down
2 changes: 1 addition & 1 deletion src/core/algorithms/dc/FastADC/providers/index_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> const& objects);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class PredicateProvider {
void Clear() {
predicates_.clear();
}

};

} // namespace algos::fastadc

0 comments on commit cdd22ed

Please sign in to comment.