From 5c72a2b6a0076d85ce12884bca3b1de89df4db1b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 18 Sep 2021 14:45:48 +0100 Subject: Pass cppcheck and clang-tidy --- libsqlitepp/sqlite-modifycommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsqlitepp/sqlite-modifycommand.cpp') 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(sqlite3_changes(c->db)); + auto rows = static_cast(sqlite3_changes(c->db)); sqlite3_reset(stmt); if (rows == 0 && !anc) { throw DB::NoRowsAffected(); -- cgit v1.2.3