aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 21:46:00 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 21:46:00 +0100
commit4209b95ecc83365718b3dd5556a6866a662e95c5 (patch)
tree2adf8c110af7f7979685fa1a3743230f8c370c83 /paludis/repositories/virtuals
parent99ca317486703808bec65846a6266afdace5d0f7 (diff)
downloadpaludis-4209b95ecc83365718b3dd5556a6866a662e95c5.tar.gz
paludis-4209b95ecc83365718b3dd5556a6866a662e95c5.tar.xz
Less verbose PrivateImplementationPattern
Diffstat (limited to 'paludis/repositories/virtuals')
-rw-r--r--paludis/repositories/virtuals/installed_virtuals_repository.cc3
-rw-r--r--paludis/repositories/virtuals/package_id.cc5
-rw-r--r--paludis/repositories/virtuals/virtuals_repository.cc3
3 files changed, 4 insertions, 7 deletions
diff --git a/paludis/repositories/virtuals/installed_virtuals_repository.cc b/paludis/repositories/virtuals/installed_virtuals_repository.cc
index 614114ad0..677c8c740 100644
--- a/paludis/repositories/virtuals/installed_virtuals_repository.cc
+++ b/paludis/repositories/virtuals/installed_virtuals_repository.cc
@@ -117,8 +117,7 @@ InstalledVirtualsRepository::InstalledVirtualsRepository(const Environment * con
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<InstalledVirtualsRepository>(
- new Implementation<InstalledVirtualsRepository>(env, r)),
+ PrivateImplementationPattern<InstalledVirtualsRepository>(env, r),
_imp(PrivateImplementationPattern<InstalledVirtualsRepository>::_imp)
{
add_metadata_key(_imp->root_key);
diff --git a/paludis/repositories/virtuals/package_id.cc b/paludis/repositories/virtuals/package_id.cc
index de93cc4f7..19b679b56 100644
--- a/paludis/repositories/virtuals/package_id.cc
+++ b/paludis/repositories/virtuals/package_id.cc
@@ -94,7 +94,7 @@ VirtualsDepKey::VirtualsDepKey(const Environment * const e, const std::string &
const std::shared_ptr<const PackageID> & v,
const std::shared_ptr<const DependenciesLabelSequence> & l,
const bool exact) :
- PrivateImplementationPattern<VirtualsDepKey>(new Implementation<VirtualsDepKey>(e, v, l, exact, r, h)),
+ PrivateImplementationPattern<VirtualsDepKey>(e, v, l, exact, r, h),
_imp(PrivateImplementationPattern<VirtualsDepKey>::_imp)
{
}
@@ -205,8 +205,7 @@ VirtualsPackageID::VirtualsPackageID(
const QualifiedPackageName & virtual_name,
const std::shared_ptr<const PackageID> & virtual_for,
const bool exact) :
- PrivateImplementationPattern<VirtualsPackageID>(
- new Implementation<VirtualsPackageID>(e, owner, virtual_name, virtual_for, exact)),
+ PrivateImplementationPattern<VirtualsPackageID>(e, owner, virtual_name, virtual_for, exact),
_imp(PrivateImplementationPattern<VirtualsPackageID>::_imp)
{
add_metadata_key(_imp->virtual_for);
diff --git a/paludis/repositories/virtuals/virtuals_repository.cc b/paludis/repositories/virtuals/virtuals_repository.cc
index 4b2d84b57..ff1e6f06b 100644
--- a/paludis/repositories/virtuals/virtuals_repository.cc
+++ b/paludis/repositories/virtuals/virtuals_repository.cc
@@ -129,8 +129,7 @@ VirtualsRepository::VirtualsRepository(const Environment * const env) :
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<VirtualsRepository>(
- new Implementation<VirtualsRepository>(env)),
+ PrivateImplementationPattern<VirtualsRepository>(env),
_imp(PrivateImplementationPattern<VirtualsRepository>::_imp)
{
add_metadata_key(_imp->format_key);