summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-03-03 15:49:59 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-03-03 16:06:38 +0000
commite56d585e5a2e24668930373aaa118e880c2ed1b8 (patch)
treedaf1f451c478b97bf69ca6658426892e91ecba40
parentICE components can be local... exception the session manager interface (diff)
downloadicespider-e56d585e5a2e24668930373aaa118e880c2ed1b8.tar.bz2
icespider-e56d585e5a2e24668930373aaa118e880c2ed1b8.tar.xz
icespider-e56d585e5a2e24668930373aaa118e880c2ed1b8.zip
We should use make_shared
-rw-r--r--icespider/common/pathparts.cpp4
1 files 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<PathParameter>(pp));
}
else {
- parts.push_back(PathPartPtr(new PathLiteral(pp)));
+ parts.push_back(std::make_shared<PathLiteral>(pp));
}
}
}