diff options
-rw-r--r-- | icespider/common/pathparts.cpp | 4 |
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)); } } } |