aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-27 23:54:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-01 03:57:52 +0000
commit97c38fc7c02260a2d213d9a16d878a0410b9d57a (patch)
treefef7c8137e22b2582acb3b66496ced9aa4135897 /paludis/repositories/virtuals
parenta1b11d059009182f19bf9cf23e060dee752d4632 (diff)
downloadpaludis-97c38fc7c02260a2d213d9a16d878a0410b9d57a.tar.gz
paludis-97c38fc7c02260a2d213d9a16d878a0410b9d57a.tar.xz
Pass PackageIDs by shared_ptr
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository.cc4
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository.hh2
2 files changed, 3 insertions, 3 deletions
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository.cc b/paludis/repositories/virtuals/installed_virtuals_repository.cc
index 5b02b3561..5f72bb8c0 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository.cc
+++ b/paludis/repositories/virtuals/installed_virtuals_repository.cc
@@ -363,9 +363,9 @@ InstalledVirtualsRepository::repository_factory_dependencies(
}
bool
-InstalledVirtualsRepository::is_suitable_destination_for(const PackageID & e) const
+InstalledVirtualsRepository::is_suitable_destination_for(const std::shared_ptr<const PackageID> & e) const
{
- std::string f(e.repository()->format_key() ? e.repository()->format_key()->value() : "");
+ std::string f(e->repository()->format_key() ? e->repository()->format_key()->value() : "");
return f == "virtuals";
}
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository.hh b/paludis/repositories/virtuals/installed_virtuals_repository.hh
index b2e397a0b..a6b78be47 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository.hh
+++ b/paludis/repositories/virtuals/installed_virtuals_repository.hh
@@ -122,7 +122,7 @@ namespace paludis
/* RepositoryDestinationInterface */
- virtual bool is_suitable_destination_for(const PackageID &) const
+ virtual bool is_suitable_destination_for(const std::shared_ptr<const PackageID> &) const
PALUDIS_ATTRIBUTE((warn_unused_result));
virtual bool is_default_destination() const