Skip to content

Commit 78d8fa7

Browse files
authored
Merge pull request #680 from andrei-datcu/patch-1
Use constant references when iterating over ranges in replace_range
2 parents 482c6dc + c4c67d2 commit 78d8fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/sqlite_orm/sqlite_orm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12358,7 +12358,7 @@ namespace sqlite_orm {
1235812358
auto stmt = statement.stmt;
1235912359
sqlite3_reset(stmt);
1236012360
for(auto it = statement.t.range.first; it != statement.t.range.second; ++it) {
12361-
auto &o = *it;
12361+
const auto &o = *it;
1236212362
tImpl.table.for_each_column([&o, &index, &stmt, db](auto &c) {
1236312363
using column_type = typename std::decay<decltype(c)>::type;
1236412364
using field_type = typename column_type::field_type;

0 commit comments

Comments
 (0)