Skip to content

Commit b1bba2d

Browse files
committed
Updated style [skip ci]
1 parent 57814d2 commit b1bba2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pgvector/sparsevec.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class SparseVector {
5959
}
6060
dimensions_ = dimensions;
6161

62-
for (auto [i, v] : map) {
62+
for (const auto [i, v] : map) {
6363
if (i < 0 || i >= dimensions) {
6464
throw std::invalid_argument("sparsevec index out of bounds");
6565
}
@@ -71,7 +71,7 @@ class SparseVector {
7171
std::sort(indices_.begin(), indices_.end());
7272

7373
values_.reserve(indices_.size());
74-
for (auto i : indices_) {
74+
for (const auto i : indices_) {
7575
values_.push_back(map.at(i));
7676
}
7777
}

0 commit comments

Comments
 (0)