From e56d585e5a2e24668930373aaa118e880c2ed1b8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 3 Mar 2018 15:49:59 +0000 Subject: We should use make_shared --- icespider/common/pathparts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icespider/common/pathparts.cpp b/icespider/common/pathparts.cpp index 21fa253..553e90a 100644 --- a/icespider/common/pathparts.cpp +++ b/icespider/common/pathparts.cpp @@ -13,10 +13,10 @@ namespace IceSpider { for (auto pi = ba::make_split_iterator(relp, ba::first_finder("/", ba::is_equal())); pi != decltype(pi)(); ++pi) { std::string pp(pi->begin(), pi->end()); if (pp.front() == '{' && pp.back() == '}') { - parts.push_back(PathPartPtr(new PathParameter(pp))); + parts.push_back(std::make_shared(pp)); } else { - parts.push_back(PathPartPtr(new PathLiteral(pp))); + parts.push_back(std::make_shared(pp)); } } } -- cgit v1.2.3