summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-03 00:16:10 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-03 00:16:10 +0000
commit207c474614c070f2659a24f1b389283d48e8589c (patch)
tree17d7ce5b1b49dded99a46727532371a88ec0cf61
parentRemove boost::filesystem in favour of std::filesystem (diff)
downloadslicer-207c474614c070f2659a24f1b389283d48e8589c.tar.bz2
slicer-207c474614c070f2659a24f1b389283d48e8589c.tar.xz
slicer-207c474614c070f2659a24f1b389283d48e8589c.zip
Remove some naked new
-rw-r--r--slicer/db/testPatch.cpp4
1 files 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<TestModule::BuiltIns>(true, 5, 17, 0, 129, 2.3, 4.5, "more text"),
+ std::make_shared<TestModule::BuiltIns>(true, 6, 18, 0, 130, 3.4, 5.6, "even more text")
};
DB::TablePatch tp;
DB::TransactionScope tx(*db);