aboutsummaryrefslogtreecommitdiff
path: root/python/additional_tests.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 21:14:33 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-23 21:15:08 +0100
commit1e88d3f531a7d9cac4cd08db1484a3a87679af3c (patch)
tree9c2852177fbfc30366d24947658bf52a5c9e6d0c /python/additional_tests.cc
parentc3802f0aec7d89a518cf74145aa73bf2ea688e35 (diff)
downloadpaludis-1e88d3f531a7d9cac4cd08db1484a3a87679af3c.tar.gz
paludis-1e88d3f531a7d9cac4cd08db1484a3a87679af3c.tar.xz
Avoid more explicit newage
Diffstat (limited to 'python/additional_tests.cc')
-rw-r--r--python/additional_tests.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/additional_tests.cc b/python/additional_tests.cc
index fc7e79519..88c2f73af 100644
--- a/python/additional_tests.cc
+++ b/python/additional_tests.cc
@@ -47,7 +47,7 @@ namespace environment
{
void test_env(Environment & e)
{
- std::shared_ptr<FakeRepository> repo(new FakeRepository(make_named_values<FakeRepositoryParams>(
+ std::shared_ptr<FakeRepository> repo(std::make_shared<FakeRepository>(make_named_values<FakeRepositoryParams>(
n::environment() = &e,
n::name() = RepositoryName("fakerepo"))));
std::shared_ptr<PackageID> pid(repo->add_version("cat", "pkg", "1.0"));
@@ -55,7 +55,7 @@ namespace environment
bool PALUDIS_ATTRIBUTE((unused)) b2(e.accept_license("l", *pid));
- std::shared_ptr<KeywordNameSet> kns(new KeywordNameSet);
+ std::shared_ptr<KeywordNameSet> kns(std::make_shared<KeywordNameSet>());
kns->insert(KeywordName("keyword"));
bool PALUDIS_ATTRIBUTE((unused)) b3(e.accept_keywords(kns, *pid));