diff options
author | Jade Lovelace <lix@jade.fyi> | 2024-08-04 22:03:35 -0700 |
---|---|---|
committer | Jade Lovelace <lix@jade.fyi> | 2024-08-08 14:53:17 -0700 |
commit | a85c4ce535c940bd2f48c34ab823fb3a8f5be0cc (patch) | |
tree | b1a428e5d41a3c9bd208f30bd00b99ebf0030967 /src/libstore/sqlite.cc | |
parent | c1291fd102ed88ba8e1df63e5b2ae6fa94c73188 (diff) |
tree-wide: automated migration to charptr_cast
The lint did it :3
Change-Id: I2d9f276b01ebbf14101de4257ea13e44ff6fe0a0
Diffstat (limited to 'src/libstore/sqlite.cc')
-rw-r--r-- | src/libstore/sqlite.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc index 3114aad48..8d0bfcb11 100644 --- a/src/libstore/sqlite.cc +++ b/src/libstore/sqlite.cc @@ -1,3 +1,4 @@ +#include "charptr-cast.hh" #include "sqlite.hh" #include "globals.hh" #include "logging.hh" @@ -201,7 +202,7 @@ bool SQLiteStmt::Use::next() std::optional<std::string> SQLiteStmt::Use::getStrNullable(int col) { - auto s = reinterpret_cast<const char *>(sqlite3_column_text(stmt, col)); + auto s = charptr_cast<const char *>(sqlite3_column_text(stmt, col)); return s != nullptr ? std::make_optional<std::string>((s)) : std::nullopt; } |