diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-17 19:15:08 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-04-17 19:15:08 +0100 |
commit | a802c57549d0111292eec1b9c0df86377efcf491 (patch) | |
tree | edfe997bfe5d97c84e9ebb555001b9db28eac4b4 /libsqlitepp/sqlite-selectcommand.cpp | |
parent | Standalone split (diff) | |
download | libdbpp-sqlite-1.2.0.tar.bz2 libdbpp-sqlite-1.2.0.tar.xz libdbpp-sqlite-1.2.0.zip |
C++17libdbpp-sqlite-1.2.0
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.cpp | 2 |
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; |