aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals/package_id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/virtuals/package_id.cc')
-rw-r--r--paludis/repositories/virtuals/package_id.cc5
1 files changed, 2 insertions, 3 deletions
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);