From ab47c39c82abee7f0e0cff981dc352fdc310a6fe Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 13:06:07 +0000 Subject: Bring up-to-date with libdbpp. --- libsqlitepp/sqlite-selectcommand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libsqlitepp/sqlite-selectcommand.cpp') diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp index 67e90ba..909dc5c 100644 --- a/libsqlitepp/sqlite-selectcommand.cpp +++ b/libsqlitepp/sqlite-selectcommand.cpp @@ -30,7 +30,7 @@ namespace SQLite { { auto t = sqlite3_column_text(stmt, colNo); auto l = sqlite3_column_bytes(stmt, colNo); - h.string(reinterpret_cast(t), l); + h.string({ reinterpret_cast(t), (std::size_t)l }); return; } case SQLITE_NULL: @@ -66,7 +66,7 @@ SQLite::SelectCommand::fetch() case SQLITE_ROW: if (!columnCount()) { for (int c = sqlite3_data_count(stmt) - 1; c >= 0; c -= 1) { - insertColumn(std::make_shared(sqlite3_column_name(stmt, c), c, stmt)); + insertColumn(std::make_unique(sqlite3_column_name(stmt, c), c, stmt)); } } return true; -- cgit v1.2.3