Skip to content

Commit 047762f

Browse files
committed
changed return type to void
1 parent 2a2600d commit 047762f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dev/util.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,17 @@ namespace sqlite_orm {
6060
namespace internal {
6161

6262
template<class L>
63-
int perform_step(sqlite3_stmt* stmt, L&& lambda) {
63+
void perform_step(sqlite3_stmt* stmt, L&& lambda) {
6464
switch (int rc = sqlite3_step(stmt)) {
6565
case SQLITE_ROW: {
6666
lambda(stmt);
6767
} break;
6868
case SQLITE_DONE:
69-
return rc;
69+
return;
7070
default: {
7171
throw_translated_sqlite_error(rc);
7272
}
7373
}
74-
return SQLITE_OK;
7574
}
7675

7776
struct sqlite_executor {

include/sqlite_orm/sqlite_orm.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13598,18 +13598,17 @@ namespace sqlite_orm {
1359813598
namespace internal {
1359913599

1360013600
template<class L>
13601-
int perform_step(sqlite3_stmt* stmt, L&& lambda) {
13601+
void perform_step(sqlite3_stmt* stmt, L&& lambda) {
1360213602
switch (int rc = sqlite3_step(stmt)) {
1360313603
case SQLITE_ROW: {
1360413604
lambda(stmt);
1360513605
} break;
1360613606
case SQLITE_DONE:
13607-
return rc;
13607+
return;
1360813608
default: {
1360913609
throw_translated_sqlite_error(rc);
1361013610
}
1361113611
}
13612-
return SQLITE_OK;
1361313612
}
1361413613

1361513614
struct sqlite_executor {

0 commit comments

Comments
 (0)