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-selectcommand.cpp | |
parent | Bring inline with clang-tidy checks (diff) | |
download | libdbpp-sqlite-1.4.1.tar.bz2 libdbpp-sqlite-1.4.1.tar.xz libdbpp-sqlite-1.4.1.zip |
Tidy fixes for latest clanglibdbpp-sqlite-1.4.1
Diffstat (limited to 'libsqlitepp/sqlite-selectcommand.cpp')
-rw-r--r-- | libsqlitepp/sqlite-selectcommand.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp index 197356c..7ad8486 100644 --- a/libsqlitepp/sqlite-selectcommand.cpp +++ b/libsqlitepp/sqlite-selectcommand.cpp @@ -14,22 +14,22 @@ namespace SQLite { { } - bool isNull() const override { - return (SQLITE_NULL == sqlite3_column_type(stmt, colNo)); + [[nodiscard]] bool isNull() const override { + return (SQLITE_NULL == sqlite3_column_type(stmt, (int)colNo)); } void apply(DB::HandleField & h) const override { - switch (sqlite3_column_type(stmt, colNo)) { + switch (sqlite3_column_type(stmt, (int)colNo)) { case SQLITE_INTEGER: - h.integer(sqlite3_column_int64(stmt, colNo)); + h.integer(sqlite3_column_int64(stmt, (int)colNo)); return; case SQLITE_FLOAT: - h.floatingpoint(sqlite3_column_double(stmt, colNo)); + h.floatingpoint(sqlite3_column_double(stmt, (int)colNo)); return; case SQLITE_TEXT: { - auto t = sqlite3_column_text(stmt, colNo); - auto l = sqlite3_column_bytes(stmt, colNo); + auto t = sqlite3_column_text(stmt, (int)colNo); + auto l = sqlite3_column_bytes(stmt, (int)colNo); h.string({ reinterpret_cast<const char *>(t), (std::size_t)l }); return; } |