From 207c474614c070f2659a24f1b389283d48e8589c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 3 Feb 2019 00:16:10 +0000 Subject: Remove some naked new --- slicer/db/testPatch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slicer/db/testPatch.cpp b/slicer/db/testPatch.cpp index bb32086..2af60b4 100644 --- a/slicer/db/testPatch.cpp +++ b/slicer/db/testPatch.cpp @@ -23,8 +23,8 @@ BOOST_FIXTURE_TEST_SUITE(db, ConnectionFixture); BOOST_AUTO_TEST_CASE( insert_builtins ) { TestModule::BuiltInSeq bis = { - TestModule::BuiltInsPtr(new TestModule::BuiltIns(true, 5, 17, 0, 129, 2.3, 4.5, "more text")), - TestModule::BuiltInsPtr(new TestModule::BuiltIns(true, 6, 18, 0, 130, 3.4, 5.6, "even more text")) + std::make_shared(true, 5, 17, 0, 129, 2.3, 4.5, "more text"), + std::make_shared(true, 6, 18, 0, 130, 3.4, 5.6, "even more text") }; DB::TablePatch tp; DB::TransactionScope tx(*db); -- cgit v1.2.3