aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/cran/registration.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 /paludis/repositories/cran/registration.cc
parentc3802f0aec7d89a518cf74145aa73bf2ea688e35 (diff)
downloadpaludis-1e88d3f531a7d9cac4cd08db1484a3a87679af3c.tar.gz
paludis-1e88d3f531a7d9cac4cd08db1484a3a87679af3c.tar.xz
Avoid more explicit newage
Diffstat (limited to 'paludis/repositories/cran/registration.cc')
-rw-r--r--paludis/repositories/cran/registration.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/repositories/cran/registration.cc b/paludis/repositories/cran/registration.cc
index 1d178ba8a..811cb89a4 100644
--- a/paludis/repositories/cran/registration.cc
+++ b/paludis/repositories/cran/registration.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2008, 2009, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -47,7 +47,7 @@ namespace paludis
template <>
void register_repositories<repository_groups::cran>(const repository_groups::cran * const, RepositoryFactory * const factory)
{
- std::shared_ptr<Set<std::string> > cran_formats(new Set<std::string>);
+ std::shared_ptr<Set<std::string> > cran_formats(std::make_shared<Set<std::string>>());
cran_formats->insert("cran");
factory->add_repository_format(
@@ -58,7 +58,7 @@ namespace paludis
&CRANRepository::repository_factory_dependencies
);
- std::shared_ptr<Set<std::string> > installed_cran_formats(new Set<std::string>);
+ std::shared_ptr<Set<std::string> > installed_cran_formats(std::make_shared<Set<std::string>>());
installed_cran_formats->insert("installed_cran");
installed_cran_formats->insert("installed-cran");