diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-03-30 11:43:42 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-03-30 11:43:42 +0000 |
commit | 5995bd64852aeaef3b59444b72229d7077575620 (patch) | |
tree | 05e98389af9c9aa45fd151b36eaf5e87e30c4a11 /libsqlitepp/sqlite-command.cpp | |
parent | Bring inline with clang-tidy checks (diff) | |
download | libdbpp-sqlite-5995bd64852aeaef3b59444b72229d7077575620.tar.bz2 libdbpp-sqlite-5995bd64852aeaef3b59444b72229d7077575620.tar.xz libdbpp-sqlite-5995bd64852aeaef3b59444b72229d7077575620.zip |
Tidy fixes for latest clanglibdbpp-sqlite-1.4.1
Diffstat (limited to 'libsqlitepp/sqlite-command.cpp')
-rw-r--r-- | libsqlitepp/sqlite-command.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libsqlitepp/sqlite-command.cpp b/libsqlitepp/sqlite-command.cpp index 0ae59d1..0020679 100644 --- a/libsqlitepp/sqlite-command.cpp +++ b/libsqlitepp/sqlite-command.cpp @@ -21,56 +21,56 @@ SQLite::Command::~Command() void SQLite::Command::bindParamI(unsigned int n, int v) { - if (sqlite3_bind_int(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_int(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } void SQLite::Command::bindParamI(unsigned int n, long int v) { - if (sqlite3_bind_int64(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_int64(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } void SQLite::Command::bindParamI(unsigned int n, long long int v) { - if (sqlite3_bind_int64(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_int64(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } void SQLite::Command::bindParamI(unsigned int n, unsigned int v) { - if (sqlite3_bind_int64(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_int64(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } void SQLite::Command::bindParamI(unsigned int n, long unsigned int v) { - if (sqlite3_bind_int64(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_int64(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } void SQLite::Command::bindParamI(unsigned int n, long long unsigned int v) { - if (sqlite3_bind_int64(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_int64(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } void SQLite::Command::bindParamF(unsigned int n, double v) { - if (sqlite3_bind_double(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_double(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } void SQLite::Command::bindParamF(unsigned int n, float v) { - if (sqlite3_bind_double(stmt, n + 1, v) != SQLITE_OK) { + if (sqlite3_bind_double(stmt, (int)n + 1, v) != SQLITE_OK) { throw Error(c->db); } } @@ -82,7 +82,7 @@ SQLite::Command::bindParamS(unsigned int n, const Glib::ustring & s) void SQLite::Command::bindParamS(unsigned int n, const std::string_view & s) { - if (sqlite3_bind_text(stmt, n + 1, s.data(), s.length(), SQLITE_STATIC) != SQLITE_OK) { + if (sqlite3_bind_text(stmt, (int)n + 1, s.data(), s.length(), SQLITE_STATIC) != SQLITE_OK) { throw Error(c->db); } } @@ -104,7 +104,7 @@ SQLite::Command::bindParamT(unsigned int, const boost::posix_time::ptime &) void SQLite::Command::bindNull(unsigned int n) { - if (sqlite3_bind_null(stmt, n + 1) != SQLITE_OK) { + if (sqlite3_bind_null(stmt, (int)n + 1) != SQLITE_OK) { throw Error(c->db); } } |