summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-selectcommand.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-17 19:15:08 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-17 19:15:08 +0100
commita802c57549d0111292eec1b9c0df86377efcf491 (patch)
treeedfe997bfe5d97c84e9ebb555001b9db28eac4b4 /libsqlitepp/sqlite-selectcommand.cpp
parentStandalone split (diff)
downloadlibdbpp-sqlite-a802c57549d0111292eec1b9c0df86377efcf491.tar.bz2
libdbpp-sqlite-a802c57549d0111292eec1b9c0df86377efcf491.tar.xz
libdbpp-sqlite-a802c57549d0111292eec1b9c0df86377efcf491.zip
Updates code largely in-keeping with updates to be C++17 in line with libadhocutil and libdbpp.
Diffstat (limited to 'libsqlitepp/sqlite-selectcommand.cpp')
-rw-r--r--libsqlitepp/sqlite-selectcommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsqlitepp/sqlite-selectcommand.cpp b/libsqlitepp/sqlite-selectcommand.cpp
index 0f36653..a65cbd1 100644
--- a/libsqlitepp/sqlite-selectcommand.cpp
+++ b/libsqlitepp/sqlite-selectcommand.cpp
@@ -66,7 +66,7 @@ SQLite::SelectCommand::fetch()
case SQLITE_ROW:
if (columns->empty()) {
for (int c = sqlite3_data_count(stmt) - 1; c >= 0; c -= 1) {
- insertColumn(DB::ColumnPtr(new Column(sqlite3_column_name(stmt, c), c, stmt)));
+ insertColumn(std::make_shared<Column>(sqlite3_column_name(stmt, c), c, stmt));
}
}
return true;