summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-modifycommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:45:48 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:45:48 +0100
commit5c72a2b6a0076d85ce12884bca3b1de89df4db1b (patch)
treee702c2a123407ac556e32b15144bf5eba99f4277 /libsqlitepp/sqlite-modifycommand.cpp
parentAdd JT recommended warnings (diff)
downloadlibdbpp-sqlite-5c72a2b6a0076d85ce12884bca3b1de89df4db1b.tar.bz2
libdbpp-sqlite-5c72a2b6a0076d85ce12884bca3b1de89df4db1b.tar.xz
libdbpp-sqlite-5c72a2b6a0076d85ce12884bca3b1de89df4db1b.zip
Pass cppcheck and clang-tidy
Diffstat (limited to 'libsqlitepp/sqlite-modifycommand.cpp')
-rw-r--r--libsqlitepp/sqlite-modifycommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsqlitepp/sqlite-modifycommand.cpp b/libsqlitepp/sqlite-modifycommand.cpp
index df859ca..d69516d 100644
--- a/libsqlitepp/sqlite-modifycommand.cpp
+++ b/libsqlitepp/sqlite-modifycommand.cpp
@@ -15,7 +15,7 @@ SQLite::ModifyCommand::execute(bool anc)
sqlite3_reset(stmt);
throw Error(c->db);
}
- unsigned int rows = static_cast<unsigned int>(sqlite3_changes(c->db));
+ auto rows = static_cast<unsigned int>(sqlite3_changes(c->db));
sqlite3_reset(stmt);
if (rows == 0 && !anc) {
throw DB::NoRowsAffected();