aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-24 09:49:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-24 09:49:50 +0100
commit60a7c102aaedb56844c8a054c62bcc9dfe91bde7 (patch)
tree5449641aecb3b6c449a73c0618371977d1ea86ac /paludis/repositories/virtuals
parentdb798f9e36404906bcd1253c9410169de122fefb (diff)
downloadpaludis-60a7c102aaedb56844c8a054c62bcc9dfe91bde7.tar.gz
paludis-60a7c102aaedb56844c8a054c62bcc9dfe91bde7.tar.xz
Deboilerplateise
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository.cc6
-rw-r--r--paludis/repositories/virtuals/virtuals_repository.cc6
2 files changed, 6 insertions, 6 deletions
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository.cc b/paludis/repositories/virtuals/installed_virtuals_repository.cc
index d49a36cca..59452c068 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository.cc
+++ b/paludis/repositories/virtuals/installed_virtuals_repository.cc
@@ -168,13 +168,13 @@ std::shared_ptr<const PackageIDSequence>
InstalledVirtualsRepository::package_ids(const QualifiedPackageName & q) const
{
if (q.category().value() != "virtual")
- return std::shared_ptr<PackageIDSequence>(std::make_shared<PackageIDSequence>());
+ return std::make_shared<PackageIDSequence>();
need_ids();
IDMap::const_iterator i(_imp->ids.find(q));
if (i == _imp->ids.end())
- return std::shared_ptr<PackageIDSequence>(std::make_shared<PackageIDSequence>());
+ return std::make_shared<PackageIDSequence>();
return i->second;
}
@@ -183,7 +183,7 @@ std::shared_ptr<const QualifiedPackageNameSet>
InstalledVirtualsRepository::package_names(const CategoryNamePart & c) const
{
if (c.value() != "virtual")
- return std::shared_ptr<QualifiedPackageNameSet>(std::make_shared<QualifiedPackageNameSet>());
+ return std::make_shared<QualifiedPackageNameSet>();
need_ids();
diff --git a/paludis/repositories/virtuals/virtuals_repository.cc b/paludis/repositories/virtuals/virtuals_repository.cc
index f55b00366..60401d9cb 100644
--- a/paludis/repositories/virtuals/virtuals_repository.cc
+++ b/paludis/repositories/virtuals/virtuals_repository.cc
@@ -251,13 +251,13 @@ std::shared_ptr<const PackageIDSequence>
VirtualsRepository::package_ids(const QualifiedPackageName & q) const
{
if (q.category().value() != "virtual")
- return std::shared_ptr<PackageIDSequence>(std::make_shared<PackageIDSequence>());
+ return std::make_shared<PackageIDSequence>();
need_ids();
IDMap::const_iterator i(_imp->ids.find(q));
if (i == _imp->ids.end())
- return std::shared_ptr<PackageIDSequence>(std::make_shared<PackageIDSequence>());
+ return std::make_shared<PackageIDSequence>();
return i->second;
}
@@ -266,7 +266,7 @@ std::shared_ptr<const QualifiedPackageNameSet>
VirtualsRepository::package_names(const CategoryNamePart & c) const
{
if (c.value() != "virtual")
- return std::shared_ptr<QualifiedPackageNameSet>(std::make_shared<QualifiedPackageNameSet>());
+ return std::make_shared<QualifiedPackageNameSet>();
need_ids();