summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-selectcommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:28 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:28 +0100
commit7e5c360a8c8eee8ebe8b1c18e49be5b4af8dac57 (patch)
tree398c50f5d2cf6001b31ea8628299b8eb90b2c543 /libsqlitepp/sqlite-selectcommand.cpp
parentModern jam lto (diff)
downloadlibdbpp-sqlite-7e5c360a8c8eee8ebe8b1c18e49be5b4af8dac57.tar.bz2
libdbpp-sqlite-7e5c360a8c8eee8ebe8b1c18e49be5b4af8dac57.tar.xz
libdbpp-sqlite-7e5c360a8c8eee8ebe8b1c18e49be5b4af8dac57.zip
Add JT recommended warnings
Diffstat (limited to 'libsqlitepp/sqlite-selectcommand.cpp')
-rw-r--r--libsqlitepp/sqlite-selectcommand.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp
index c4a1096..e360dcd 100644
--- a/libsqlitepp/sqlite-selectcommand.cpp
+++ b/libsqlitepp/sqlite-selectcommand.cpp
@@ -13,23 +13,23 @@ namespace SQLite {
[[nodiscard]] bool
isNull() const override
{
- return (SQLITE_NULL == sqlite3_column_type(stmt, (int)colNo));
+ return (SQLITE_NULL == sqlite3_column_type(stmt, static_cast<int>(colNo)));
}
void
apply(DB::HandleField & h) const override
{
- switch (sqlite3_column_type(stmt, (int)colNo)) {
+ switch (sqlite3_column_type(stmt, static_cast<int>(colNo))) {
case SQLITE_INTEGER:
- h.integer(sqlite3_column_int64(stmt, (int)colNo));
+ h.integer(sqlite3_column_int64(stmt, static_cast<int>(colNo)));
return;
case SQLITE_FLOAT:
- h.floatingpoint(sqlite3_column_double(stmt, (int)colNo));
+ h.floatingpoint(sqlite3_column_double(stmt, static_cast<int>(colNo)));
return;
case SQLITE_TEXT: {
- 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});
+ auto t = sqlite3_column_text(stmt, static_cast<int>(colNo));
+ auto l = sqlite3_column_bytes(stmt, static_cast<int>(colNo));
+ h.string({reinterpret_cast<const char *>(t), static_cast<std::size_t>(l)});
return;
}
case SQLITE_NULL: