summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-selectcommand.cpp
diff options
context:
space:
mode:
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;