aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories')
-rw-r--r--paludis/repositories/accounts/accounts_dep_key.cc2
-rw-r--r--paludis/repositories/accounts/accounts_id.cc2
-rw-r--r--paludis/repositories/accounts/accounts_repository.cc4
-rw-r--r--paludis/repositories/accounts/accounts_repository_store.cc3
-rw-r--r--paludis/repositories/accounts/installed_accounts_id.cc2
-rw-r--r--paludis/repositories/cran/cran_installed_repository.cc2
-rw-r--r--paludis/repositories/cran/cran_package_id.cc4
-rw-r--r--paludis/repositories/cran/cran_repository.cc2
-rw-r--r--paludis/repositories/cran/dep_spec_pretty_printer.cc4
-rw-r--r--paludis/repositories/cran/description_file.cc4
-rw-r--r--paludis/repositories/cran/keys.cc2
-rw-r--r--paludis/repositories/cran/masks.cc4
-rw-r--r--paludis/repositories/e/aa_visitor.cc2
-rw-r--r--paludis/repositories/e/check_fetched_files_visitor.cc2
-rw-r--r--paludis/repositories/e/dep_spec_pretty_printer.cc4
-rw-r--r--paludis/repositories/e/dependencies_rewriter.cc2
-rw-r--r--paludis/repositories/e/e_choices_key.cc2
-rw-r--r--paludis/repositories/e/e_installed_repository.cc2
-rw-r--r--paludis/repositories/e/e_installed_repository_id.cc2
-rw-r--r--paludis/repositories/e/e_key.cc24
-rw-r--r--paludis/repositories/e/e_mask.cc8
-rw-r--r--paludis/repositories/e/e_repository.cc2
-rw-r--r--paludis/repositories/e/e_repository_mask_file.cc2
-rw-r--r--paludis/repositories/e/e_repository_news.cc6
-rw-r--r--paludis/repositories/e/e_repository_sets.cc2
-rw-r--r--paludis/repositories/e/e_stripper.cc2
-rw-r--r--paludis/repositories/e/eapi.cc6
-rw-r--r--paludis/repositories/e/eapi_phase.cc4
-rw-r--r--paludis/repositories/e/ebuild_flat_metadata_cache.cc2
-rw-r--r--paludis/repositories/e/ebuild_id.cc2
-rw-r--r--paludis/repositories/e/eclass_mtimes.cc4
-rw-r--r--paludis/repositories/e/exheres_layout.cc2
-rw-r--r--paludis/repositories/e/exheres_profile.cc3
-rw-r--r--paludis/repositories/e/exndbam_repository.cc2
-rw-r--r--paludis/repositories/e/fetch_visitor.cc2
-rw-r--r--paludis/repositories/e/glsa.cc6
-rw-r--r--paludis/repositories/e/info_metadata_key.cc6
-rw-r--r--paludis/repositories/e/manifest2_reader.cc2
-rw-r--r--paludis/repositories/e/memoised_hashes.cc2
-rw-r--r--paludis/repositories/e/metadata_xml.cc2
-rw-r--r--paludis/repositories/e/myoptions_requirements_verifier.cc2
-rw-r--r--paludis/repositories/e/pretend_fetch_visitor.cc2
-rw-r--r--paludis/repositories/e/profile_file.cc4
-rw-r--r--paludis/repositories/e/source_uri_finder.cc4
-rw-r--r--paludis/repositories/e/traditional_layout.cc2
-rw-r--r--paludis/repositories/e/traditional_profile.cc3
-rw-r--r--paludis/repositories/e/use_desc.cc2
-rw-r--r--paludis/repositories/e/vdb_merger.cc2
-rw-r--r--paludis/repositories/e/vdb_repository.cc2
-rw-r--r--paludis/repositories/e/vdb_unmerger.cc2
-rw-r--r--paludis/repositories/e/xml_things_handle.cc2
-rw-r--r--paludis/repositories/fake/fake_installed_repository.cc3
-rw-r--r--paludis/repositories/fake/fake_package_id.cc18
-rw-r--r--paludis/repositories/fake/fake_repository.cc2
-rw-r--r--paludis/repositories/fake/fake_repository_base.cc2
-rw-r--r--paludis/repositories/gems/gem_specification.cc4
-rw-r--r--paludis/repositories/gems/gem_specifications.cc2
-rw-r--r--paludis/repositories/gems/gems_repository.cc2
-rw-r--r--paludis/repositories/gems/installed_gems_repository.cc2
-rw-r--r--paludis/repositories/gems/yaml.cc10
-rw-r--r--paludis/repositories/repository/repository_id.cc2
-rw-r--r--paludis/repositories/repository/repository_repository.cc2
-rw-r--r--paludis/repositories/repository/repository_repository_store.cc2
-rw-r--r--paludis/repositories/unavailable/unavailable_package_id.cc2
-rw-r--r--paludis/repositories/unavailable/unavailable_repository.cc2
-rw-r--r--paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc3
-rw-r--r--paludis/repositories/unavailable/unavailable_repository_file.cc2
-rw-r--r--paludis/repositories/unavailable/unavailable_repository_id.cc2
-rw-r--r--paludis/repositories/unavailable/unavailable_repository_store.cc2
-rw-r--r--paludis/repositories/unpackaged/installed_id.cc2
-rw-r--r--paludis/repositories/unpackaged/installed_repository.cc2
-rw-r--r--paludis/repositories/unpackaged/unpackaged_id.cc2
-rw-r--r--paludis/repositories/unpackaged/unpackaged_key.cc4
-rw-r--r--paludis/repositories/unpackaged/unpackaged_repository.cc2
-rw-r--r--paludis/repositories/unpackaged/unpackaged_stripper.cc2
-rw-r--r--paludis/repositories/unwritten/unwritten_id.cc2
-rw-r--r--paludis/repositories/unwritten/unwritten_repository.cc2
-rw-r--r--paludis/repositories/unwritten/unwritten_repository_file.cc2
-rw-r--r--paludis/repositories/unwritten/unwritten_repository_store.cc2
-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
82 files changed, 128 insertions, 138 deletions
diff --git a/paludis/repositories/accounts/accounts_dep_key.cc b/paludis/repositories/accounts/accounts_dep_key.cc
index 6627343f5..702ea4dcc 100644
--- a/paludis/repositories/accounts/accounts_dep_key.cc
+++ b/paludis/repositories/accounts/accounts_dep_key.cc
@@ -68,7 +68,7 @@ namespace paludis
AccountsDepKey::AccountsDepKey(const Environment * const e,
const std::shared_ptr<const Set<std::string> > & s) :
- PrivateImplementationPattern<AccountsDepKey>(new Implementation<AccountsDepKey>(e, s))
+ PrivateImplementationPattern<AccountsDepKey>(e, s)
{
}
diff --git a/paludis/repositories/accounts/accounts_id.cc b/paludis/repositories/accounts/accounts_id.cc
index 40c00f58b..77b67a759 100644
--- a/paludis/repositories/accounts/accounts_id.cc
+++ b/paludis/repositories/accounts/accounts_id.cc
@@ -99,7 +99,7 @@ AccountsID::AccountsID(const Environment * const e,
const QualifiedPackageName & q, const std::shared_ptr<const Repository> & r,
const std::shared_ptr<const MetadataCollectionKey<Set<std::string> > > & f, const FSEntry & l,
const bool u, const bool m) :
- PrivateImplementationPattern<AccountsID>(new Implementation<AccountsID>(e, q, r, f, l, u, m)),
+ PrivateImplementationPattern<AccountsID>(e, q, r, f, l, u, m),
_imp(PrivateImplementationPattern<AccountsID>::_imp)
{
if (_imp->mask)
diff --git a/paludis/repositories/accounts/accounts_repository.cc b/paludis/repositories/accounts/accounts_repository.cc
index fd129705e..2335a9853 100644
--- a/paludis/repositories/accounts/accounts_repository.cc
+++ b/paludis/repositories/accounts/accounts_repository.cc
@@ -106,7 +106,7 @@ namespace paludis
}
AccountsRepository::AccountsRepository(const AccountsRepositoryParams & p) :
- PrivateImplementationPattern<AccountsRepository>(new Implementation<AccountsRepository>(this, p)),
+ PrivateImplementationPattern<AccountsRepository>(this, p),
Repository(
p.environment(),
p.name(),
@@ -124,7 +124,7 @@ AccountsRepository::AccountsRepository(const AccountsRepositoryParams & p) :
}
AccountsRepository::AccountsRepository(const InstalledAccountsRepositoryParams & p) :
- PrivateImplementationPattern<AccountsRepository>(new Implementation<AccountsRepository>(this, p)),
+ PrivateImplementationPattern<AccountsRepository>(this, p),
Repository(
p.environment(),
p.name(),
diff --git a/paludis/repositories/accounts/accounts_repository_store.cc b/paludis/repositories/accounts/accounts_repository_store.cc
index 4d00751ce..ff9ba0cdb 100644
--- a/paludis/repositories/accounts/accounts_repository_store.cc
+++ b/paludis/repositories/accounts/accounts_repository_store.cc
@@ -86,8 +86,7 @@ AccountsRepositoryStore::AccountsRepositoryStore(
const Environment * const env,
const AccountsRepository * const repo,
const bool installed) :
- PrivateImplementationPattern<AccountsRepositoryStore>(new Implementation<AccountsRepositoryStore>(
- env, repo, installed))
+ PrivateImplementationPattern<AccountsRepositoryStore>(env, repo, installed)
{
_load(repo->shared_from_this());
}
diff --git a/paludis/repositories/accounts/installed_accounts_id.cc b/paludis/repositories/accounts/installed_accounts_id.cc
index 1305da39c..08eeea31c 100644
--- a/paludis/repositories/accounts/installed_accounts_id.cc
+++ b/paludis/repositories/accounts/installed_accounts_id.cc
@@ -95,7 +95,7 @@ const std::shared_ptr<Set<std::string> > Implementation<InstalledAccountsID>::be
InstalledAccountsID::InstalledAccountsID(const Environment * const e,
const QualifiedPackageName & q, const std::shared_ptr<const Repository> & r, const bool u) :
- PrivateImplementationPattern<InstalledAccountsID>(new Implementation<InstalledAccountsID>(e, q, r, u)),
+ PrivateImplementationPattern<InstalledAccountsID>(e, q, r, u),
_imp(PrivateImplementationPattern<InstalledAccountsID>::_imp)
{
add_metadata_key(_imp->behaviours_key);
diff --git a/paludis/repositories/cran/cran_installed_repository.cc b/paludis/repositories/cran/cran_installed_repository.cc
index 7faffb2c8..1ae7bc249 100644
--- a/paludis/repositories/cran/cran_installed_repository.cc
+++ b/paludis/repositories/cran/cran_installed_repository.cc
@@ -170,7 +170,7 @@ CRANInstalledRepository::CRANInstalledRepository(const CRANInstalledRepositoryPa
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<CRANInstalledRepository>(new Implementation<CRANInstalledRepository>(p)),
+ PrivateImplementationPattern<CRANInstalledRepository>(p),
_imp(PrivateImplementationPattern<CRANInstalledRepository>::_imp)
{
_add_metadata_keys();
diff --git a/paludis/repositories/cran/cran_package_id.cc b/paludis/repositories/cran/cran_package_id.cc
index 3bff511e0..a84bfceef 100644
--- a/paludis/repositories/cran/cran_package_id.cc
+++ b/paludis/repositories/cran/cran_package_id.cc
@@ -108,7 +108,7 @@ namespace paludis
}
CRANPackageID::CRANPackageID(const Environment * const env, const std::shared_ptr<const CRANRepository> & r, const FSEntry & f) :
- PrivateImplementationPattern<CRANPackageID>(new Implementation<CRANPackageID>(env, r, f)),
+ PrivateImplementationPattern<CRANPackageID>(env, r, f),
_imp(PrivateImplementationPattern<CRANPackageID>::_imp)
{
Context context("When parsing file '" + stringify(f) + "' to create a CRAN Package ID:");
@@ -277,7 +277,7 @@ CRANPackageID::CRANPackageID(const Environment * const env, const std::shared_pt
CRANPackageID::CRANPackageID(const Environment * const e,
const std::shared_ptr<const CRANRepository> & c, const CRANPackageID * const r, const std::string & t) :
- PrivateImplementationPattern<CRANPackageID>(new Implementation<CRANPackageID>(e, c, r, t)),
+ PrivateImplementationPattern<CRANPackageID>(e, c, r, t),
_imp(PrivateImplementationPattern<CRANPackageID>::_imp)
{
Context context("When creating contained ID '" + stringify(t) + "' in " + stringify(*r) + "':");
diff --git a/paludis/repositories/cran/cran_repository.cc b/paludis/repositories/cran/cran_repository.cc
index d6cc72a80..fadd8db71 100644
--- a/paludis/repositories/cran/cran_repository.cc
+++ b/paludis/repositories/cran/cran_repository.cc
@@ -117,7 +117,7 @@ CRANRepository::CRANRepository(const CRANRepositoryParams & p) :
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<CRANRepository>(new Implementation<CRANRepository>(p, std::make_shared<Mutex>())),
+ PrivateImplementationPattern<CRANRepository>(p, std::make_shared<Mutex>()),
_imp(PrivateImplementationPattern<CRANRepository>::_imp)
{
_add_metadata_keys();
diff --git a/paludis/repositories/cran/dep_spec_pretty_printer.cc b/paludis/repositories/cran/dep_spec_pretty_printer.cc
index 3a941f15e..6d00eacf5 100644
--- a/paludis/repositories/cran/dep_spec_pretty_printer.cc
+++ b/paludis/repositories/cran/dep_spec_pretty_printer.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 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
@@ -64,7 +64,7 @@ namespace paludis
DepSpecPrettyPrinter::DepSpecPrettyPrinter(const Environment * const e,
const GenericSpecTree::ItemFormatter & f, const unsigned initial_indent, const bool multiline) :
- PrivateImplementationPattern<DepSpecPrettyPrinter>(new Implementation<DepSpecPrettyPrinter>(e, f, initial_indent, multiline))
+ PrivateImplementationPattern<DepSpecPrettyPrinter>(e, f, initial_indent, multiline)
{
}
diff --git a/paludis/repositories/cran/description_file.cc b/paludis/repositories/cran/description_file.cc
index a0ad9df8a..f61f30167 100644
--- a/paludis/repositories/cran/description_file.cc
+++ b/paludis/repositories/cran/description_file.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 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
@@ -39,7 +39,7 @@ namespace paludis
}
DescriptionFile::DescriptionFile(const Source & sr) :
- PrivateImplementationPattern<DescriptionFile>(new Implementation<DescriptionFile>)
+ PrivateImplementationPattern<DescriptionFile>()
{
Context c("When parsing CRAN description file '" + sr.filename() + "':");
diff --git a/paludis/repositories/cran/keys.cc b/paludis/repositories/cran/keys.cc
index 3a005570d..20df6a91a 100644
--- a/paludis/repositories/cran/keys.cc
+++ b/paludis/repositories/cran/keys.cc
@@ -168,7 +168,7 @@ namespace paludis
DepKey::DepKey(const Environment * const e, const std::string & r, const std::string & h, const std::string & v,
const std::shared_ptr<const DependenciesLabelSequence> & s, const MetadataKeyType t) :
- PrivateImplementationPattern<DepKey>(new Implementation<DepKey>(e, v, s, r, h, t)),
+ PrivateImplementationPattern<DepKey>(e, v, s, r, h, t),
_imp(PrivateImplementationPattern<DepKey>::_imp)
{
}
diff --git a/paludis/repositories/cran/masks.cc b/paludis/repositories/cran/masks.cc
index 6850cec58..067bbdc95 100644
--- a/paludis/repositories/cran/masks.cc
+++ b/paludis/repositories/cran/masks.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 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
@@ -42,7 +42,7 @@ namespace paludis
}
BrokenMask::BrokenMask(const char c, const std::string & d, const std::string & e) :
- PrivateImplementationPattern<BrokenMask>(new Implementation<BrokenMask>(c, d, e))
+ PrivateImplementationPattern<BrokenMask>(c, d, e)
{
}
diff --git a/paludis/repositories/e/aa_visitor.cc b/paludis/repositories/e/aa_visitor.cc
index 3d34be509..0322ffec6 100644
--- a/paludis/repositories/e/aa_visitor.cc
+++ b/paludis/repositories/e/aa_visitor.cc
@@ -51,7 +51,7 @@ namespace paludis
}
AAVisitor::AAVisitor() :
- PrivateImplementationPattern<AAVisitor>(new Implementation<AAVisitor>)
+ PrivateImplementationPattern<AAVisitor>()
{
}
diff --git a/paludis/repositories/e/check_fetched_files_visitor.cc b/paludis/repositories/e/check_fetched_files_visitor.cc
index c3711438e..991391c1b 100644
--- a/paludis/repositories/e/check_fetched_files_visitor.cc
+++ b/paludis/repositories/e/check_fetched_files_visitor.cc
@@ -118,7 +118,7 @@ CheckFetchedFilesVisitor::CheckFetchedFilesVisitor(
const bool x,
const bool u,
const bool nm) :
- PrivateImplementationPattern<CheckFetchedFilesVisitor>(new Implementation<CheckFetchedFilesVisitor>(e, i, d, c, n, m2, um, md, x, u, nm))
+ PrivateImplementationPattern<CheckFetchedFilesVisitor>(e, i, d, c, n, m2, um, md, x, u, nm)
{
}
diff --git a/paludis/repositories/e/dep_spec_pretty_printer.cc b/paludis/repositories/e/dep_spec_pretty_printer.cc
index dd9a65f6e..ed91bad7a 100644
--- a/paludis/repositories/e/dep_spec_pretty_printer.cc
+++ b/paludis/repositories/e/dep_spec_pretty_printer.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
@@ -93,7 +93,7 @@ DepSpecPrettyPrinter::DepSpecPrettyPrinter(
unsigned i,
bool b,
bool c) :
- PrivateImplementationPattern<DepSpecPrettyPrinter>(new Implementation<DepSpecPrettyPrinter>(e, id, f, i, b, c))
+ PrivateImplementationPattern<DepSpecPrettyPrinter>(e, id, f, i, b, c)
{
}
diff --git a/paludis/repositories/e/dependencies_rewriter.cc b/paludis/repositories/e/dependencies_rewriter.cc
index 5c5329f41..a000e24d0 100644
--- a/paludis/repositories/e/dependencies_rewriter.cc
+++ b/paludis/repositories/e/dependencies_rewriter.cc
@@ -82,7 +82,7 @@ namespace paludis
}
DependenciesRewriter::DependenciesRewriter() :
- PrivateImplementationPattern<DependenciesRewriter>(new Implementation<DependenciesRewriter>)
+ PrivateImplementationPattern<DependenciesRewriter>()
{
}
diff --git a/paludis/repositories/e/e_choices_key.cc b/paludis/repositories/e/e_choices_key.cc
index bde164d76..a2dfa9eb8 100644
--- a/paludis/repositories/e/e_choices_key.cc
+++ b/paludis/repositories/e/e_choices_key.cc
@@ -92,7 +92,7 @@ EChoicesKey::EChoicesKey(
const std::string & r, const std::string & h, const MetadataKeyType t,
const std::shared_ptr<const ERepository> & p,
const std::shared_ptr<const Map<ChoiceNameWithPrefix, std::string> > & d) :
- PrivateImplementationPattern<EChoicesKey>(new Implementation<EChoicesKey>(e, i, p, d, r, h, t))
+ PrivateImplementationPattern<EChoicesKey>(e, i, p, d, r, h, t)
{
}
diff --git a/paludis/repositories/e/e_installed_repository.cc b/paludis/repositories/e/e_installed_repository.cc
index df915b732..675b1647f 100644
--- a/paludis/repositories/e/e_installed_repository.cc
+++ b/paludis/repositories/e/e_installed_repository.cc
@@ -73,7 +73,7 @@ namespace paludis
EInstalledRepository::EInstalledRepository(const EInstalledRepositoryParams & p,
const RepositoryName & n, const RepositoryCapabilities & c) :
Repository(p.environment(), n, c),
- PrivateImplementationPattern<EInstalledRepository>(new Implementation<EInstalledRepository>(p)),
+ PrivateImplementationPattern<EInstalledRepository>(p),
_imp(PrivateImplementationPattern<EInstalledRepository>::_imp)
{
}
diff --git a/paludis/repositories/e/e_installed_repository_id.cc b/paludis/repositories/e/e_installed_repository_id.cc
index 28b114282..f5d779966 100644
--- a/paludis/repositories/e/e_installed_repository_id.cc
+++ b/paludis/repositories/e/e_installed_repository_id.cc
@@ -163,7 +163,7 @@ EInstalledRepositoryID::EInstalledRepositoryID(const QualifiedPackageName & q, c
const Environment * const e,
const std::shared_ptr<const Repository> & r,
const FSEntry & f) :
- PrivateImplementationPattern<EInstalledRepositoryID>(new Implementation<EInstalledRepositoryID>(q, v, e, r, f)),
+ PrivateImplementationPattern<EInstalledRepositoryID>(q, v, e, r, f),
_imp(PrivateImplementationPattern<EInstalledRepositoryID>::_imp)
{
}
diff --git a/paludis/repositories/e/e_key.cc b/paludis/repositories/e/e_key.cc
index 087793cf6..3650f3ac8 100644
--- a/paludis/repositories/e/e_key.cc
+++ b/paludis/repositories/e/e_key.cc
@@ -139,7 +139,7 @@ EDependenciesKey::EDependenciesKey(
const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v,
const std::shared_ptr<const DependenciesLabelSequence> & l, const MetadataKeyType t) :
- PrivateImplementationPattern<EDependenciesKey>(new Implementation<EDependenciesKey>(e, id, v, l, r, h, t))
+ PrivateImplementationPattern<EDependenciesKey>(e, id, v, l, r, h, t)
{
}
@@ -232,7 +232,7 @@ ELicenseKey::ELicenseKey(
const Environment * const e,
const std::shared_ptr<const ERepositoryID> & id,
const std::shared_ptr<const EAPIMetadataVariable> & m, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<ELicenseKey>(new Implementation<ELicenseKey>(e, id, v, m, t))
+ PrivateImplementationPattern<ELicenseKey>(e, id, v, m, t)
{
}
@@ -319,7 +319,7 @@ namespace paludis
EFetchableURIKey::EFetchableURIKey(const Environment * const e,
const std::shared_ptr<const ERepositoryID> & id,
const std::shared_ptr<const EAPIMetadataVariable> & m, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EFetchableURIKey>(new Implementation<EFetchableURIKey>(e, id, m, v, t))
+ PrivateImplementationPattern<EFetchableURIKey>(e, id, m, v, t)
{
}
@@ -444,7 +444,7 @@ namespace paludis
ESimpleURIKey::ESimpleURIKey(const Environment * const e,
const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<ESimpleURIKey>(new Implementation<ESimpleURIKey>(e, id, v, r, h, t))
+ PrivateImplementationPattern<ESimpleURIKey>(e, id, v, r, h, t)
{
}
@@ -531,7 +531,7 @@ namespace paludis
EPlainTextSpecKey::EPlainTextSpecKey(const Environment * const e,
const std::shared_ptr<const ERepositoryID> & id,
const std::shared_ptr<const EAPIMetadataVariable> & m, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EPlainTextSpecKey>(new Implementation<EPlainTextSpecKey>(e, id, v, m, t))
+ PrivateImplementationPattern<EPlainTextSpecKey>(e, id, v, m, t)
{
}
@@ -619,7 +619,7 @@ namespace paludis
EMyOptionsKey::EMyOptionsKey(const Environment * const e,
const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EMyOptionsKey>(new Implementation<EMyOptionsKey>(e, id, v, r, h, t))
+ PrivateImplementationPattern<EMyOptionsKey>(e, id, v, r, h, t)
{
}
@@ -706,7 +706,7 @@ namespace paludis
EProvideKey::EProvideKey(const Environment * const e, const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EProvideKey>(new Implementation<EProvideKey>(e, id, v, r, h, t))
+ PrivateImplementationPattern<EProvideKey>(e, id, v, r, h, t)
{
}
@@ -793,7 +793,7 @@ namespace paludis
EKeywordsKey::EKeywordsKey(const Environment * const e, const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EKeywordsKey>(new Implementation<EKeywordsKey>(id, e, v, r, h, t))
+ PrivateImplementationPattern<EKeywordsKey>(id, e, v, r, h, t)
{
}
@@ -881,7 +881,7 @@ namespace paludis
EStringSetKey::EStringSetKey(const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EStringSetKey>(new Implementation<EStringSetKey>(id, v, r, h, t))
+ PrivateImplementationPattern<EStringSetKey>(id, v, r, h, t)
{
}
@@ -964,7 +964,7 @@ namespace paludis
EContentsKey::EContentsKey(const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const FSEntry & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EContentsKey>(new Implementation<EContentsKey>(id, v, r, h, t))
+ PrivateImplementationPattern<EContentsKey>(id, v, r, h, t)
{
}
@@ -1084,7 +1084,7 @@ namespace paludis
EMTimeKey::EMTimeKey(const std::shared_ptr<const ERepositoryID> & id,
const std::string & r, const std::string & h, const FSEntry & v, const MetadataKeyType t) :
- PrivateImplementationPattern<EMTimeKey>(new Implementation<EMTimeKey>(id, v, r, h, t))
+ PrivateImplementationPattern<EMTimeKey>(id, v, r, h, t)
{
}
@@ -1153,7 +1153,7 @@ namespace paludis
}
ESlotKey::ESlotKey(const std::shared_ptr<const EAPIMetadataVariable> & m, const std::string & v, const MetadataKeyType t) :
- PrivateImplementationPattern<ESlotKey>(new Implementation<ESlotKey>(SlotName(v), m, t))
+ PrivateImplementationPattern<ESlotKey>(SlotName(v), m, t)
{
}
diff --git a/paludis/repositories/e/e_mask.cc b/paludis/repositories/e/e_mask.cc
index c363017f2..71b6f46bb 100644
--- a/paludis/repositories/e/e_mask.cc
+++ b/paludis/repositories/e/e_mask.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 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
@@ -42,7 +42,7 @@ namespace paludis
}
EUnacceptedMask::EUnacceptedMask(const char k, const std::string & d, const std::shared_ptr<const MetadataKey> & u) :
- PrivateImplementationPattern<EUnacceptedMask>(new Implementation<EUnacceptedMask>(k, d, u))
+ PrivateImplementationPattern<EUnacceptedMask>(k, d, u)
{
}
@@ -87,7 +87,7 @@ namespace paludis
}
EUnsupportedMask::EUnsupportedMask(const char k, const std::string & d, const std::string & n) :
- PrivateImplementationPattern<EUnsupportedMask>(new Implementation<EUnsupportedMask>(k, d, n))
+ PrivateImplementationPattern<EUnsupportedMask>(k, d, n)
{
}
@@ -134,7 +134,7 @@ namespace paludis
}
ERepositoryMask::ERepositoryMask(const char k, const std::string & d, const std::shared_ptr<const MetadataKey> & m) :
- PrivateImplementationPattern<ERepositoryMask>(new Implementation<ERepositoryMask>(k, d, m))
+ PrivateImplementationPattern<ERepositoryMask>(k, d, m)
{
}
diff --git a/paludis/repositories/e/e_repository.cc b/paludis/repositories/e/e_repository.cc
index 64a7a08e2..698a8fd03 100644
--- a/paludis/repositories/e/e_repository.cc
+++ b/paludis/repositories/e/e_repository.cc
@@ -505,7 +505,7 @@ ERepository::ERepository(const ERepositoryParams & p) :
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = (*DistributionData::get_instance()->distribution_from_string(p.environment()->distribution())).support_old_style_virtuals() ? this : 0
)),
- PrivateImplementationPattern<ERepository>(new Implementation<ERepository>(this, p)),
+ PrivateImplementationPattern<ERepository>(this, p),
_imp(PrivateImplementationPattern<ERepository>::_imp)
{
_add_metadata_keys();
diff --git a/paludis/repositories/e/e_repository_mask_file.cc b/paludis/repositories/e/e_repository_mask_file.cc
index 59e2c3abc..3af26c463 100644
--- a/paludis/repositories/e/e_repository_mask_file.cc
+++ b/paludis/repositories/e/e_repository_mask_file.cc
@@ -52,7 +52,7 @@ namespace paludis
}
MaskFile::MaskFile(const FSEntry & f, const LineConfigFileOptions & opts) :
- PrivateImplementationPattern<MaskFile>(new Implementation<MaskFile>)
+ PrivateImplementationPattern<MaskFile>()
{
LineConfigFileOptions myopts(opts);
myopts += lcfo_disallow_comments;
diff --git a/paludis/repositories/e/e_repository_news.cc b/paludis/repositories/e/e_repository_news.cc
index d3823e7f8..30f9a4ec4 100644
--- a/paludis/repositories/e/e_repository_news.cc
+++ b/paludis/repositories/e/e_repository_news.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
@@ -107,7 +107,7 @@ namespace paludis
ERepositoryNews::ERepositoryNews(const Environment * const e, const ERepository * const p,
const erepository::ERepositoryParams & k) :
- PrivateImplementationPattern<ERepositoryNews>(new Implementation<ERepositoryNews>(e, p, k))
+ PrivateImplementationPattern<ERepositoryNews>(e, p, k)
{
}
@@ -267,7 +267,7 @@ namespace paludis
}
NewsFile::NewsFile(const FSEntry & our_filename) :
- PrivateImplementationPattern<NewsFile>(new Implementation<NewsFile>)
+ PrivateImplementationPattern<NewsFile>()
{
Context context("When parsing GLEP 42 news file '" + stringify(our_filename) + "':");
diff --git a/paludis/repositories/e/e_repository_sets.cc b/paludis/repositories/e/e_repository_sets.cc
index bc281c1f3..c551fefa9 100644
--- a/paludis/repositories/e/e_repository_sets.cc
+++ b/paludis/repositories/e/e_repository_sets.cc
@@ -89,7 +89,7 @@ namespace paludis
ERepositorySets::ERepositorySets(const Environment * const e, const ERepository * const p,
const erepository::ERepositoryParams & k) :
- PrivateImplementationPattern<ERepositorySets>(new Implementation<ERepositorySets>(e, p, k))
+ PrivateImplementationPattern<ERepositorySets>(e, p, k)
{
}
diff --git a/paludis/repositories/e/e_stripper.cc b/paludis/repositories/e/e_stripper.cc
index dcc65c953..7ead11dd8 100644
--- a/paludis/repositories/e/e_stripper.cc
+++ b/paludis/repositories/e/e_stripper.cc
@@ -48,7 +48,7 @@ EStripper::EStripper(const EStripperOptions & options) :
n::split() = options.split(),
n::strip() = options.strip()
)),
- PrivateImplementationPattern<EStripper>(new Implementation<EStripper>(options)),
+ PrivateImplementationPattern<EStripper>(options),
_imp(PrivateImplementationPattern<EStripper>::_imp)
{
}
diff --git a/paludis/repositories/e/eapi.cc b/paludis/repositories/e/eapi.cc
index 6533b98bf..20739567f 100644
--- a/paludis/repositories/e/eapi.cc
+++ b/paludis/repositories/e/eapi.cc
@@ -381,7 +381,7 @@ EAPIConfigurationError::EAPIConfigurationError(const std::string & s) throw () :
}
EAPIData::EAPIData() :
- PrivateImplementationPattern<EAPIData>(new Implementation<EAPIData>)
+ PrivateImplementationPattern<EAPIData>()
{
}
@@ -423,7 +423,7 @@ namespace paludis
}
EAPILabels::EAPILabels(const std::string & s) :
- PrivateImplementationPattern<EAPILabels>(new Implementation<EAPILabels>)
+ PrivateImplementationPattern<EAPILabels>()
{
std::vector<std::string> tokens;
@@ -444,7 +444,7 @@ EAPILabels::EAPILabels(const std::string & s) :
}
EAPILabels::EAPILabels(const EAPILabels & other) :
- PrivateImplementationPattern<EAPILabels>(new Implementation<EAPILabels>(*other._imp.operator-> ()))
+ PrivateImplementationPattern<EAPILabels>(*other._imp.operator-> ())
{
}
diff --git a/paludis/repositories/e/eapi_phase.cc b/paludis/repositories/e/eapi_phase.cc
index ffab13bc5..431551616 100644
--- a/paludis/repositories/e/eapi_phase.cc
+++ b/paludis/repositories/e/eapi_phase.cc
@@ -62,7 +62,7 @@ namespace paludis
}
EAPIPhase::EAPIPhase(const std::string & s) :
- PrivateImplementationPattern<EAPIPhase>(new Implementation<EAPIPhase>)
+ PrivateImplementationPattern<EAPIPhase>()
{
Context c("When parsing EAPI phase '" + s + "'");
@@ -111,7 +111,7 @@ EAPIPhase::end_commands() const
}
EAPIPhases::EAPIPhases(const std::string & s) :
- PrivateImplementationPattern<EAPIPhases>(new Implementation<EAPIPhases>)
+ PrivateImplementationPattern<EAPIPhases>()
{
Context c("When parsing EAPI phases '" + s + "'");
diff --git a/paludis/repositories/e/ebuild_flat_metadata_cache.cc b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
index 9c61edc75..a497b7205 100644
--- a/paludis/repositories/e/ebuild_flat_metadata_cache.cc
+++ b/paludis/repositories/e/ebuild_flat_metadata_cache.cc
@@ -288,7 +288,7 @@ namespace
EbuildFlatMetadataCache::EbuildFlatMetadataCache(const Environment * const v, FSEntry & f,
const FSEntry & e, std::time_t t, const std::shared_ptr<const EclassMtimes> & m, bool s) :
- PrivateImplementationPattern<EbuildFlatMetadataCache>(new Implementation<EbuildFlatMetadataCache>(v, f, e, t, m, s))
+ PrivateImplementationPattern<EbuildFlatMetadataCache>(v, f, e, t, m, s)
{
}
diff --git a/paludis/repositories/e/ebuild_id.cc b/paludis/repositories/e/ebuild_id.cc
index 9ac2b1281..611e95582 100644
--- a/paludis/repositories/e/ebuild_id.cc
+++ b/paludis/repositories/e/ebuild_id.cc
@@ -160,7 +160,7 @@ EbuildID::EbuildID(const QualifiedPackageName & q, const VersionSpec & v,
const std::string & g,
const time_t t,
const std::shared_ptr<const EclassMtimes> & m) :
- PrivateImplementationPattern<EbuildID>(new Implementation<EbuildID>(q, v, e, r, f, g.empty() ? r->params().eapi_when_unknown() : g, t, m)),
+ PrivateImplementationPattern<EbuildID>(q, v, e, r, f, g.empty() ? r->params().eapi_when_unknown() : g, t, m),
_imp(PrivateImplementationPattern<EbuildID>::_imp)
{
}
diff --git a/paludis/repositories/e/eclass_mtimes.cc b/paludis/repositories/e/eclass_mtimes.cc
index a058cec0a..4910ad5a0 100644
--- a/paludis/repositories/e/eclass_mtimes.cc
+++ b/paludis/repositories/e/eclass_mtimes.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2008, 2010 Ciaran McCreesh
* Copyright (c) 2008 David Leverton
*
* This file is part of the Paludis package manager. Paludis is free software;
@@ -83,7 +83,7 @@ namespace paludis
}
EclassMtimes::EclassMtimes(const ERepository * r, const std::shared_ptr<const FSEntrySequence> & d) :
- PrivateImplementationPattern<EclassMtimes>(new Implementation<EclassMtimes>(r, d))
+ PrivateImplementationPattern<EclassMtimes>(r, d)
{
}
diff --git a/paludis/repositories/e/exheres_layout.cc b/paludis/repositories/e/exheres_layout.cc
index d78a3115c..15cb88b62 100644
--- a/paludis/repositories/e/exheres_layout.cc
+++ b/paludis/repositories/e/exheres_layout.cc
@@ -97,7 +97,7 @@ namespace paludis
ExheresLayout::ExheresLayout(const ERepository * const r, const FSEntry & tree_root,
const std::shared_ptr<const FSEntrySequence> & f) :
Layout(f),
- PrivateImplementationPattern<ExheresLayout>(new Implementation<ExheresLayout>(r, tree_root))
+ PrivateImplementationPattern<ExheresLayout>(r, tree_root)
{
if (master_repositories_locations())
{
diff --git a/paludis/repositories/e/exheres_profile.cc b/paludis/repositories/e/exheres_profile.cc
index 51234ceda..abedc1991 100644
--- a/paludis/repositories/e/exheres_profile.cc
+++ b/paludis/repositories/e/exheres_profile.cc
@@ -125,8 +125,7 @@ ExheresProfile::ExheresProfile(
const Environment * const env, const ERepository * const p, const RepositoryName & name,
const FSEntrySequence & location,
const std::string & arch_var_if_special, const bool x) :
- PrivateImplementationPattern<ExheresProfile>(
- new Implementation<ExheresProfile>(env, p, name, location, arch_var_if_special, x))
+ PrivateImplementationPattern<ExheresProfile>(env, p, name, location, arch_var_if_special, x)
{
for (FSEntrySequence::ConstIterator l(location.begin()), l_end(location.end()) ;
l != l_end ; ++l)
diff --git a/paludis/repositories/e/exndbam_repository.cc b/paludis/repositories/e/exndbam_repository.cc
index 2d829064c..b1daffe8d 100644
--- a/paludis/repositories/e/exndbam_repository.cc
+++ b/paludis/repositories/e/exndbam_repository.cc
@@ -109,7 +109,7 @@ ExndbamRepository::ExndbamRepository(const RepositoryName & n, const ExndbamRepo
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<ExndbamRepository>(new Implementation<ExndbamRepository>(p)),
+ PrivateImplementationPattern<ExndbamRepository>(p),
_imp(PrivateImplementationPattern<ExndbamRepository>::_imp)
{
_add_metadata_keys();
diff --git a/paludis/repositories/e/fetch_visitor.cc b/paludis/repositories/e/fetch_visitor.cc
index 91b324398..4c4346a8b 100644
--- a/paludis/repositories/e/fetch_visitor.cc
+++ b/paludis/repositories/e/fetch_visitor.cc
@@ -101,7 +101,7 @@ FetchVisitor::FetchVisitor(
const bool sr,
const std::shared_ptr<OutputManager> & md,
const GetMirrorsFunction & g) :
- PrivateImplementationPattern<FetchVisitor>(new Implementation<FetchVisitor>(e, i, p, d, f, u, m, n, sr, md, g))
+ PrivateImplementationPattern<FetchVisitor>(e, i, p, d, f, u, m, n, sr, md, g)
{
}
diff --git a/paludis/repositories/e/glsa.cc b/paludis/repositories/e/glsa.cc
index d0cf4c197..ebaacbac6 100644
--- a/paludis/repositories/e/glsa.cc
+++ b/paludis/repositories/e/glsa.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
@@ -80,7 +80,7 @@ namespace paludis
}
GLSAPackage::GLSAPackage(const QualifiedPackageName & n) :
- PrivateImplementationPattern<GLSAPackage>(new Implementation<GLSAPackage>(n))
+ PrivateImplementationPattern<GLSAPackage>(n)
{
}
@@ -149,7 +149,7 @@ GLSAPackage::name() const
}
GLSA::GLSA() :
- PrivateImplementationPattern<GLSA>(new Implementation<GLSA>)
+ PrivateImplementationPattern<GLSA>()
{
}
diff --git a/paludis/repositories/e/info_metadata_key.cc b/paludis/repositories/e/info_metadata_key.cc
index 52ea862df..599f6e64b 100644
--- a/paludis/repositories/e/info_metadata_key.cc
+++ b/paludis/repositories/e/info_metadata_key.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 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
@@ -85,7 +85,7 @@ namespace paludis
}
InfoVarsMetadataKey::InfoVarsMetadataKey(const std::shared_ptr<const FSEntrySequence> & f) :
- PrivateImplementationPattern<InfoVarsMetadataKey>(new Implementation<InfoVarsMetadataKey>(f))
+ PrivateImplementationPattern<InfoVarsMetadataKey>(f)
{
}
@@ -140,7 +140,7 @@ InfoVarsMetadataKey::type() const
InfoPkgsMetadataKey::InfoPkgsMetadataKey(const Environment * const e,
const std::shared_ptr<const FSEntrySequence> & f,
const ERepository * const r) :
- PrivateImplementationPattern<InfoPkgsMetadataKey>(new Implementation<InfoPkgsMetadataKey>(e, f, r)),
+ PrivateImplementationPattern<InfoPkgsMetadataKey>(e, f, r),
_imp(PrivateImplementationPattern<InfoPkgsMetadataKey>::_imp)
{
}
diff --git a/paludis/repositories/e/manifest2_reader.cc b/paludis/repositories/e/manifest2_reader.cc
index 3195de581..1e88c035a 100644
--- a/paludis/repositories/e/manifest2_reader.cc
+++ b/paludis/repositories/e/manifest2_reader.cc
@@ -65,7 +65,7 @@ Manifest2Error::Manifest2Error(const std::string & msg) throw () :
}
Manifest2Reader::Manifest2Reader(const FSEntry & f) :
- PrivateImplementationPattern<Manifest2Reader>(new Implementation<Manifest2Reader>(f))
+ PrivateImplementationPattern<Manifest2Reader>(f)
{
if (! f.exists())
return;
diff --git a/paludis/repositories/e/memoised_hashes.cc b/paludis/repositories/e/memoised_hashes.cc
index 640fe5610..4f0abf35e 100644
--- a/paludis/repositories/e/memoised_hashes.cc
+++ b/paludis/repositories/e/memoised_hashes.cc
@@ -52,7 +52,7 @@ namespace paludis
}
MemoisedHashes::MemoisedHashes() :
- PrivateImplementationPattern<MemoisedHashes>(new Implementation<MemoisedHashes>)
+ PrivateImplementationPattern<MemoisedHashes>()
{
}
diff --git a/paludis/repositories/e/metadata_xml.cc b/paludis/repositories/e/metadata_xml.cc
index d98799987..8b0c02291 100644
--- a/paludis/repositories/e/metadata_xml.cc
+++ b/paludis/repositories/e/metadata_xml.cc
@@ -46,7 +46,7 @@ namespace paludis
}
MetadataXMLPool::MetadataXMLPool() :
- PrivateImplementationPattern<MetadataXMLPool>(new Implementation<MetadataXMLPool>)
+ PrivateImplementationPattern<MetadataXMLPool>()
{
}
diff --git a/paludis/repositories/e/myoptions_requirements_verifier.cc b/paludis/repositories/e/myoptions_requirements_verifier.cc
index 2ddfa4cc8..ad33dfa03 100644
--- a/paludis/repositories/e/myoptions_requirements_verifier.cc
+++ b/paludis/repositories/e/myoptions_requirements_verifier.cc
@@ -63,7 +63,7 @@ namespace paludis
}
MyOptionsRequirementsVerifier::MyOptionsRequirementsVerifier(const std::shared_ptr<const ERepositoryID> & id) :
- PrivateImplementationPattern<MyOptionsRequirementsVerifier>(new Implementation<MyOptionsRequirementsVerifier>(id))
+ PrivateImplementationPattern<MyOptionsRequirementsVerifier>(id)
{
}
diff --git a/paludis/repositories/e/pretend_fetch_visitor.cc b/paludis/repositories/e/pretend_fetch_visitor.cc
index 4b06ab0ce..86db37954 100644
--- a/paludis/repositories/e/pretend_fetch_visitor.cc
+++ b/paludis/repositories/e/pretend_fetch_visitor.cc
@@ -83,7 +83,7 @@ PretendFetchVisitor::PretendFetchVisitor(
const bool f,
const std::shared_ptr<const URILabel> & n,
PretendFetchAction & a) :
- PrivateImplementationPattern<PretendFetchVisitor>(new Implementation<PretendFetchVisitor>(e, i, p, d, f, n, a))
+ PrivateImplementationPattern<PretendFetchVisitor>(e, i, p, d, f, n, a)
{
}
diff --git a/paludis/repositories/e/profile_file.cc b/paludis/repositories/e/profile_file.cc
index 7eaad3b98..5f70c6f9d 100644
--- a/paludis/repositories/e/profile_file.cc
+++ b/paludis/repositories/e/profile_file.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
@@ -164,7 +164,7 @@ ProfileFile<F_>::add_file(const FSEntry & f)
template <typename F_>
ProfileFile<F_>::ProfileFile(const ERepository * const r) :
- PrivateImplementationPattern<ProfileFile>(new Implementation<ProfileFile<F_> >(r))
+ PrivateImplementationPattern<ProfileFile>(r)
{
}
diff --git a/paludis/repositories/e/source_uri_finder.cc b/paludis/repositories/e/source_uri_finder.cc
index 6116dd8f0..b10b94b18 100644
--- a/paludis/repositories/e/source_uri_finder.cc
+++ b/paludis/repositories/e/source_uri_finder.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 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
@@ -71,7 +71,7 @@ namespace paludis
SourceURIFinder::SourceURIFinder(const Environment * const e, const Repository * const repo,
const std::string & u, const std::string & f, const std::string & m, const GetMirrorsFunction & g) :
- PrivateImplementationPattern<SourceURIFinder>(new Implementation<SourceURIFinder>(e, repo, u, f, m, g))
+ PrivateImplementationPattern<SourceURIFinder>(e, repo, u, f, m, g)
{
}
diff --git a/paludis/repositories/e/traditional_layout.cc b/paludis/repositories/e/traditional_layout.cc
index 19771d232..dcc1fea3e 100644
--- a/paludis/repositories/e/traditional_layout.cc
+++ b/paludis/repositories/e/traditional_layout.cc
@@ -97,7 +97,7 @@ namespace paludis
TraditionalLayout::TraditionalLayout(const ERepository * const repo, const FSEntry & tree_root,
const std::shared_ptr<const FSEntrySequence> & f) :
Layout(f),
- PrivateImplementationPattern<TraditionalLayout>(new Implementation<TraditionalLayout>(repo, tree_root))
+ PrivateImplementationPattern<TraditionalLayout>(repo, tree_root)
{
if (master_repositories_locations())
{
diff --git a/paludis/repositories/e/traditional_profile.cc b/paludis/repositories/e/traditional_profile.cc
index 33ebbe9f0..fcdf0f6dc 100644
--- a/paludis/repositories/e/traditional_profile.cc
+++ b/paludis/repositories/e/traditional_profile.cc
@@ -833,8 +833,7 @@ TraditionalProfile::TraditionalProfile(
const Environment * const env, const ERepository * const p, const RepositoryName & name,
const FSEntrySequence & location,
const std::string & arch_var_if_special, const bool x) :
- PrivateImplementationPattern<TraditionalProfile>(
- new Implementation<TraditionalProfile>(env, p, name, location, arch_var_if_special, x))
+ PrivateImplementationPattern<TraditionalProfile>(env, p, name, location, arch_var_if_special, x)
{
}
diff --git a/paludis/repositories/e/use_desc.cc b/paludis/repositories/e/use_desc.cc
index d89b82659..8982419bc 100644
--- a/paludis/repositories/e/use_desc.cc
+++ b/paludis/repositories/e/use_desc.cc
@@ -79,7 +79,7 @@ namespace paludis
}
UseDesc::UseDesc(const std::shared_ptr<const UseDescFileInfoSequence> & f) :
- PrivateImplementationPattern<UseDesc>(new Implementation<UseDesc>(f))
+ PrivateImplementationPattern<UseDesc>(f)
{
}
diff --git a/paludis/repositories/e/vdb_merger.cc b/paludis/repositories/e/vdb_merger.cc
index 266583ead..364b68f9a 100644
--- a/paludis/repositories/e/vdb_merger.cc
+++ b/paludis/repositories/e/vdb_merger.cc
@@ -91,7 +91,7 @@ VDBMerger::VDBMerger(const VDBMergerParams & p) :
n::options() = p.options(),
n::root() = p.root()
)),
- PrivateImplementationPattern<VDBMerger>(new Implementation<VDBMerger>(p)),
+ PrivateImplementationPattern<VDBMerger>(p),
_imp(PrivateImplementationPattern<VDBMerger>::_imp)
{
}
diff --git a/paludis/repositories/e/vdb_repository.cc b/paludis/repositories/e/vdb_repository.cc
index c5fb32506..83ee8841d 100644
--- a/paludis/repositories/e/vdb_repository.cc
+++ b/paludis/repositories/e/vdb_repository.cc
@@ -176,7 +176,7 @@ VDBRepository::VDBRepository(const VDBRepositoryParams & p) :
n::provides_interface() = this,
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<VDBRepository>(new Implementation<VDBRepository>(this, p)),
+ PrivateImplementationPattern<VDBRepository>(this, p),
_imp(PrivateImplementationPattern<VDBRepository>::_imp)
{
_add_metadata_keys();
diff --git a/paludis/repositories/e/vdb_unmerger.cc b/paludis/repositories/e/vdb_unmerger.cc
index fa0f0aa6e..12b11dbd1 100644
--- a/paludis/repositories/e/vdb_unmerger.cc
+++ b/paludis/repositories/e/vdb_unmerger.cc
@@ -74,7 +74,7 @@ VDBUnmerger::VDBUnmerger(const VDBUnmergerOptions & o) :
n::ignore() = o.ignore(),
n::root() = o.root()
)),
- PrivateImplementationPattern<VDBUnmerger>(new Implementation<VDBUnmerger>(o)),
+ PrivateImplementationPattern<VDBUnmerger>(o),
_imp(PrivateImplementationPattern<VDBUnmerger>::_imp.get())
{
}
diff --git a/paludis/repositories/e/xml_things_handle.cc b/paludis/repositories/e/xml_things_handle.cc
index c90625e92..81d16dc71 100644
--- a/paludis/repositories/e/xml_things_handle.cc
+++ b/paludis/repositories/e/xml_things_handle.cc
@@ -123,7 +123,7 @@ namespace paludis
}
XMLThingsHandle::XMLThingsHandle() :
- PrivateImplementationPattern<XMLThingsHandle>(new Implementation<XMLThingsHandle>)
+ PrivateImplementationPattern<XMLThingsHandle>()
{
}
diff --git a/paludis/repositories/fake/fake_installed_repository.cc b/paludis/repositories/fake/fake_installed_repository.cc
index a13d7bcd4..bb0f1112f 100644
--- a/paludis/repositories/fake/fake_installed_repository.cc
+++ b/paludis/repositories/fake/fake_installed_repository.cc
@@ -67,8 +67,7 @@ FakeInstalledRepository::FakeInstalledRepository(const FakeInstalledRepositoryPa
n::provides_interface() = this,
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<FakeInstalledRepository>(new Implementation<FakeInstalledRepository>(
- p.supports_uninstall(), p.suitable_destination())),
+ PrivateImplementationPattern<FakeInstalledRepository>(p.supports_uninstall(), p.suitable_destination()),
_imp(PrivateImplementationPattern<FakeInstalledRepository>::_imp)
{
add_metadata_key(_imp->format_key);
diff --git a/paludis/repositories/fake/fake_package_id.cc b/paludis/repositories/fake/fake_package_id.cc
index db1ac5af2..24498284a 100644
--- a/paludis/repositories/fake/fake_package_id.cc
+++ b/paludis/repositories/fake/fake_package_id.cc
@@ -73,7 +73,7 @@ namespace paludis
template <typename C_>
FakeMetadataValueKey<C_>::FakeMetadataValueKey(
const std::string & r, const std::string & h, const MetadataKeyType t, const C_ & c) :
- PrivateImplementationPattern<FakeMetadataValueKey<C_> >(new Implementation<FakeMetadataValueKey<C_> >(r, h, t, c)),
+ PrivateImplementationPattern<FakeMetadataValueKey<C_> >(r, h, t, c),
_imp(PrivateImplementationPattern<FakeMetadataValueKey<C_> >::_imp)
{
}
@@ -154,7 +154,7 @@ template <typename C_>
FakeMetadataCollectionKey<C_>::FakeMetadataCollectionKey(
const std::string & r, const std::string & h, const MetadataKeyType t, const PackageID * const i,
const Environment * const e) :
- PrivateImplementationPattern<FakeMetadataCollectionKey<C_> >(new Implementation<FakeMetadataCollectionKey<C_> >(i, e, r, h, t)),
+ PrivateImplementationPattern<FakeMetadataCollectionKey<C_> >(i, e, r, h, t),
_imp(PrivateImplementationPattern<FakeMetadataCollectionKey<C_> >::_imp)
{
}
@@ -281,7 +281,7 @@ namespace paludis
template <typename C_>
FakeMetadataSpecTreeKey<C_>::FakeMetadataSpecTreeKey(const std::string & r, const std::string & h, const std::string & v,
const std::function<const std::shared_ptr<const C_> (const std::string &)> & f, const MetadataKeyType t) :
- PrivateImplementationPattern<FakeMetadataSpecTreeKey<C_> >(new Implementation<FakeMetadataSpecTreeKey<C_> >(f, r, h, t)),
+ PrivateImplementationPattern<FakeMetadataSpecTreeKey<C_> >(f, r, h, t),
_imp(PrivateImplementationPattern<FakeMetadataSpecTreeKey<C_> >::_imp)
{
set_from_string(v);
@@ -344,8 +344,7 @@ FakeMetadataSpecTreeKey<C_>::pretty_print_flat(const typename C_::ItemFormatter
FakeMetadataSpecTreeKey<FetchableURISpecTree>::FakeMetadataSpecTreeKey(const std::string & r, const std::string & h, const std::string & v,
const std::function<const std::shared_ptr<const FetchableURISpecTree> (const std::string &)> & f, const MetadataKeyType t) :
- PrivateImplementationPattern<FakeMetadataSpecTreeKey<FetchableURISpecTree> >(
- new Implementation<FakeMetadataSpecTreeKey<FetchableURISpecTree> >(f, r, h, t)),
+ PrivateImplementationPattern<FakeMetadataSpecTreeKey<FetchableURISpecTree> >(f, r, h, t),
_imp(PrivateImplementationPattern<FakeMetadataSpecTreeKey<FetchableURISpecTree> >::_imp)
{
set_from_string(v);
@@ -407,8 +406,7 @@ FakeMetadataSpecTreeKey<FetchableURISpecTree>::initial_label() const
FakeMetadataSpecTreeKey<DependencySpecTree>::FakeMetadataSpecTreeKey(const std::string & r, const std::string & h, const std::string & v,
const std::function<const std::shared_ptr<const DependencySpecTree> (const std::string &)> & f,
const std::shared_ptr<const DependenciesLabelSequence> & s, const MetadataKeyType t) :
- PrivateImplementationPattern<FakeMetadataSpecTreeKey<DependencySpecTree> >(
- new Implementation<FakeMetadataSpecTreeKey<DependencySpecTree> >(f, s, r, h, t)),
+ PrivateImplementationPattern<FakeMetadataSpecTreeKey<DependencySpecTree> >(f, s, r, h, t),
_imp(PrivateImplementationPattern<FakeMetadataSpecTreeKey<DependencySpecTree> >::_imp)
{
set_from_string(v);
@@ -552,7 +550,7 @@ namespace
FakeMetadataChoicesKey::FakeMetadataChoicesKey(const Environment * const e,
const std::shared_ptr<const PackageID> & i) :
- PrivateImplementationPattern<FakeMetadataChoicesKey>(new Implementation<FakeMetadataChoicesKey>(e, i)),
+ PrivateImplementationPattern<FakeMetadataChoicesKey>(e, i),
_imp(PrivateImplementationPattern<FakeMetadataChoicesKey>::_imp)
{
}
@@ -626,7 +624,7 @@ namespace paludis
}
FakeUnacceptedMask::FakeUnacceptedMask(const char c, const std::string & s, const std::shared_ptr<const MetadataKey> & k) :
- PrivateImplementationPattern<FakeUnacceptedMask>(new Implementation<FakeUnacceptedMask>(c, s, k))
+ PrivateImplementationPattern<FakeUnacceptedMask>(c, s, k)
{
}
@@ -748,7 +746,7 @@ namespace paludis
FakePackageID::FakePackageID(const Environment * const e, const std::shared_ptr<const FakeRepositoryBase> & r,
const QualifiedPackageName & q, const VersionSpec & v) :
- PrivateImplementationPattern<FakePackageID>(new Implementation<FakePackageID>(e, r, q, v, this)),
+ PrivateImplementationPattern<FakePackageID>(e, r, q, v, this),
_imp(PrivateImplementationPattern<FakePackageID>::_imp)
{
add_metadata_key(_imp->keywords);
diff --git a/paludis/repositories/fake/fake_repository.cc b/paludis/repositories/fake/fake_repository.cc
index d8e2d484e..83bb4478e 100644
--- a/paludis/repositories/fake/fake_repository.cc
+++ b/paludis/repositories/fake/fake_repository.cc
@@ -53,7 +53,7 @@ namespace paludis
}
FakeRepository::FakeRepository(const FakeRepositoryParams & params) :
- PrivateImplementationPattern<FakeRepository>(new Implementation<FakeRepository>),
+ PrivateImplementationPattern<FakeRepository>(),
FakeRepositoryBase(params.environment(), params.name(), make_named_values<RepositoryCapabilities>(
n::destination_interface() = static_cast<RepositoryDestinationInterface *>(0),
n::environment_variable_interface() = static_cast<RepositoryEnvironmentVariableInterface *>(0),
diff --git a/paludis/repositories/fake/fake_repository_base.cc b/paludis/repositories/fake/fake_repository_base.cc
index 7ef36f1a6..2b28bdfd6 100644
--- a/paludis/repositories/fake/fake_repository_base.cc
+++ b/paludis/repositories/fake/fake_repository_base.cc
@@ -64,7 +64,7 @@ namespace paludis
FakeRepositoryBase::FakeRepositoryBase(const Environment * const e,
const RepositoryName & our_name, const RepositoryCapabilities & caps) :
Repository(e, our_name, caps),
- PrivateImplementationPattern<FakeRepositoryBase>(new Implementation<FakeRepositoryBase>(e)),
+ PrivateImplementationPattern<FakeRepositoryBase>(e),
_imp(PrivateImplementationPattern<FakeRepositoryBase>::_imp)
{
}
diff --git a/paludis/repositories/gems/gem_specification.cc b/paludis/repositories/gems/gem_specification.cc
index 3f6fe70c9..a223bd6b5 100644
--- a/paludis/repositories/gems/gem_specification.cc
+++ b/paludis/repositories/gems/gem_specification.cc
@@ -245,7 +245,7 @@ namespace
GemSpecification::GemSpecification(const Environment * const e,
const std::shared_ptr<const Repository> & r, const yaml::Node & node) :
- PrivateImplementationPattern<GemSpecification>(new Implementation<GemSpecification>(e, r)),
+ PrivateImplementationPattern<GemSpecification>(e, r),
_imp(PrivateImplementationPattern<GemSpecification>::_imp)
{
TopVisitor v(_imp.get());
@@ -267,7 +267,7 @@ GemSpecification::GemSpecification(const Environment * const e,
GemSpecification::GemSpecification(const Environment * const e, const std::shared_ptr<const Repository> & r,
const PackageNamePart & q, const VersionSpec & v, const FSEntry & f) :
- PrivateImplementationPattern<GemSpecification>(new Implementation<GemSpecification>(e, r)),
+ PrivateImplementationPattern<GemSpecification>(e, r),
_imp(PrivateImplementationPattern<GemSpecification>::_imp)
{
_imp->name_part = stringify(q);
diff --git a/paludis/repositories/gems/gem_specifications.cc b/paludis/repositories/gems/gem_specifications.cc
index 0df3021e8..4ed784800 100644
--- a/paludis/repositories/gems/gem_specifications.cc
+++ b/paludis/repositories/gems/gem_specifications.cc
@@ -196,7 +196,7 @@ namespace
GemSpecifications::GemSpecifications(const Environment * const e,
const std::shared_ptr<const Repository> & r, const yaml::Node & n) :
- PrivateImplementationPattern<GemSpecifications>(new Implementation<GemSpecifications>)
+ PrivateImplementationPattern<GemSpecifications>()
{
TopVisitor v(e, r, _imp.get());
n.accept(v);
diff --git a/paludis/repositories/gems/gems_repository.cc b/paludis/repositories/gems/gems_repository.cc
index 848bd57ac..45c1fffa5 100644
--- a/paludis/repositories/gems/gems_repository.cc
+++ b/paludis/repositories/gems/gems_repository.cc
@@ -99,7 +99,7 @@ GemsRepository::GemsRepository(const gems::RepositoryParams & params) :
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<GemsRepository>(new Implementation<GemsRepository>(params)),
+ PrivateImplementationPattern<GemsRepository>(params),
_imp(PrivateImplementationPattern<GemsRepository>::_imp)
{
_add_metadata_keys();
diff --git a/paludis/repositories/gems/installed_gems_repository.cc b/paludis/repositories/gems/installed_gems_repository.cc
index 1c71e3f6a..3fd9448f9 100644
--- a/paludis/repositories/gems/installed_gems_repository.cc
+++ b/paludis/repositories/gems/installed_gems_repository.cc
@@ -104,7 +104,7 @@ InstalledGemsRepository::InstalledGemsRepository(const gems::InstalledRepository
n::provides_interface() = static_cast<RepositoryProvidesInterface *>(0),
n::virtuals_interface() = static_cast<RepositoryVirtualsInterface *>(0)
)),
- PrivateImplementationPattern<InstalledGemsRepository>(new Implementation<InstalledGemsRepository>(params)),
+ PrivateImplementationPattern<InstalledGemsRepository>(params),
_imp(PrivateImplementationPattern<InstalledGemsRepository>::_imp)
{
_add_metadata_keys();
diff --git a/paludis/repositories/gems/yaml.cc b/paludis/repositories/gems/yaml.cc
index 824d38cb4..23eecdcf7 100644
--- a/paludis/repositories/gems/yaml.cc
+++ b/paludis/repositories/gems/yaml.cc
@@ -62,7 +62,7 @@ namespace paludis
}
StringNode::StringNode(const std::string & t) :
- PrivateImplementationPattern<StringNode>(new Implementation<StringNode>(t))
+ PrivateImplementationPattern<StringNode>(t)
{
}
@@ -86,7 +86,7 @@ namespace paludis
}
SequenceNode::SequenceNode() :
- PrivateImplementationPattern<SequenceNode>(new Implementation<SequenceNode>)
+ PrivateImplementationPattern<SequenceNode>()
{
}
@@ -122,7 +122,7 @@ namespace paludis
}
MapNode::MapNode() :
- PrivateImplementationPattern<MapNode>(new Implementation<MapNode>)
+ PrivateImplementationPattern<MapNode>()
{
}
@@ -315,7 +315,7 @@ namespace paludis
}
Document::Document(const std::string & s) :
- PrivateImplementationPattern<Document>(new Implementation<Document>(s))
+ PrivateImplementationPattern<Document>(s)
{
Context c("When parsing yaml document:");
@@ -360,7 +360,7 @@ namespace paludis
}
NodeManager::NodeManager() :
- PrivateImplementationPattern<NodeManager>(new Implementation<NodeManager>)
+ PrivateImplementationPattern<NodeManager>()
{
}
diff --git a/paludis/repositories/repository/repository_id.cc b/paludis/repositories/repository/repository_id.cc
index edf29f601..c52077cbb 100644
--- a/paludis/repositories/repository/repository_id.cc
+++ b/paludis/repositories/repository/repository_id.cc
@@ -75,7 +75,7 @@ namespace
const std::shared_ptr<Set<std::string> > Implementation<RepositoryID>::behaviours_set = make_behaviours();
RepositoryID::RepositoryID(const RepositoryIDParams & entry) :
- PrivateImplementationPattern<RepositoryID>(new Implementation<RepositoryID>(entry)),
+ PrivateImplementationPattern<RepositoryID>(entry),
_imp(PrivateImplementationPattern<RepositoryID>::_imp)
{
add_metadata_key(_imp->behaviours_key);
diff --git a/paludis/repositories/repository/repository_repository.cc b/paludis/repositories/repository/repository_repository.cc
index 0f153d408..2ae486a1f 100644
--- a/paludis/repositories/repository/repository_repository.cc
+++ b/paludis/repositories/repository/repository_repository.cc
@@ -88,7 +88,7 @@ RepositoryRepositoryConfigurationError::RepositoryRepositoryConfigurationError(c
}
RepositoryRepository::RepositoryRepository(const RepositoryRepositoryParams & p) :
- PrivateImplementationPattern<RepositoryRepository>(new Implementation<RepositoryRepository>(this, p)),
+ PrivateImplementationPattern<RepositoryRepository>(this, p),
Repository(
p.environment(),
p.name(),
diff --git a/paludis/repositories/repository/repository_repository_store.cc b/paludis/repositories/repository/repository_repository_store.cc
index 96ae6171c..0669af480 100644
--- a/paludis/repositories/repository/repository_repository_store.cc
+++ b/paludis/repositories/repository/repository_repository_store.cc
@@ -72,7 +72,7 @@ namespace paludis
RepositoryRepositoryStore::RepositoryRepositoryStore(
const Environment * const env,
const RepositoryRepository * const repo) :
- PrivateImplementationPattern<RepositoryRepositoryStore>(new Implementation<RepositoryRepositoryStore>(env, repo))
+ PrivateImplementationPattern<RepositoryRepositoryStore>(env, repo)
{
_populate();
}
diff --git a/paludis/repositories/unavailable/unavailable_package_id.cc b/paludis/repositories/unavailable/unavailable_package_id.cc
index 179122533..f620676a5 100644
--- a/paludis/repositories/unavailable/unavailable_package_id.cc
+++ b/paludis/repositories/unavailable/unavailable_package_id.cc
@@ -73,7 +73,7 @@ namespace paludis
}
UnavailablePackageID::UnavailablePackageID(const UnavailablePackageIDParams & entry) :
- PrivateImplementationPattern<UnavailablePackageID>(new Implementation<UnavailablePackageID>(entry)),
+ PrivateImplementationPattern<UnavailablePackageID>(entry),
_imp(PrivateImplementationPattern<UnavailablePackageID>::_imp)
{
add_metadata_key(_imp->slot_key);
diff --git a/paludis/repositories/unavailable/unavailable_repository.cc b/paludis/repositories/unavailable/unavailable_repository.cc
index d04a2eecc..22b5235a4 100644
--- a/paludis/repositories/unavailable/unavailable_repository.cc
+++ b/paludis/repositories/unavailable/unavailable_repository.cc
@@ -85,7 +85,7 @@ UnavailableRepositoryConfigurationError::UnavailableRepositoryConfigurationError
}
UnavailableRepository::UnavailableRepository(const UnavailableRepositoryParams & p) :
- PrivateImplementationPattern<UnavailableRepository>(new Implementation<UnavailableRepository>(this, p)),
+ PrivateImplementationPattern<UnavailableRepository>(this, p),
Repository(
p.environment(),
p.name(),
diff --git a/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc b/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc
index d603bf877..381fbc450 100644
--- a/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc
+++ b/paludis/repositories/unavailable/unavailable_repository_dependencies_key.cc
@@ -62,8 +62,7 @@ namespace paludis
UnavailableRepositoryDependenciesKey::UnavailableRepositoryDependenciesKey(const Environment * const env,
const std::string & r, const std::string & h, const MetadataKeyType t,
const std::string & v) :
- PrivateImplementationPattern<UnavailableRepositoryDependenciesKey>(
- new Implementation<UnavailableRepositoryDependenciesKey>(env, r, h, t, v))
+ PrivateImplementationPattern<UnavailableRepositoryDependenciesKey>(env, r, h, t, v)
{
}
diff --git a/paludis/repositories/unavailable/unavailable_repository_file.cc b/paludis/repositories/unavailable/unavailable_repository_file.cc
index 8e4615b03..00e5d7851 100644
--- a/paludis/repositories/unavailable/unavailable_repository_file.cc
+++ b/paludis/repositories/unavailable/unavailable_repository_file.cc
@@ -60,7 +60,7 @@ namespace paludis
}
UnavailableRepositoryFile::UnavailableRepositoryFile(const FSEntry & f) :
- PrivateImplementationPattern<UnavailableRepositoryFile>(new Implementation<UnavailableRepositoryFile>)
+ PrivateImplementationPattern<UnavailableRepositoryFile>()
{
_load(f);
}
diff --git a/paludis/repositories/unavailable/unavailable_repository_id.cc b/paludis/repositories/unavailable/unavailable_repository_id.cc
index 882d65acc..dd8420419 100644
--- a/paludis/repositories/unavailable/unavailable_repository_id.cc
+++ b/paludis/repositories/unavailable/unavailable_repository_id.cc
@@ -74,7 +74,7 @@ namespace paludis
}
UnavailableRepositoryID::UnavailableRepositoryID(const UnavailableRepositoryIDParams & entry) :
- PrivateImplementationPattern<UnavailableRepositoryID>(new Implementation<UnavailableRepositoryID>(entry)),
+ PrivateImplementationPattern<UnavailableRepositoryID>(entry),
_imp(PrivateImplementationPattern<UnavailableRepositoryID>::_imp)
{
if (_imp->dependencies_key)
diff --git a/paludis/repositories/unavailable/unavailable_repository_store.cc b/paludis/repositories/unavailable/unavailable_repository_store.cc
index aa170b74f..a4629ff62 100644
--- a/paludis/repositories/unavailable/unavailable_repository_store.cc
+++ b/paludis/repositories/unavailable/unavailable_repository_store.cc
@@ -79,7 +79,7 @@ UnavailableRepositoryStore::UnavailableRepositoryStore(
const Environment * const env,
const UnavailableRepository * const repo,
const FSEntry & f) :
- PrivateImplementationPattern<UnavailableRepositoryStore>(new Implementation<UnavailableRepositoryStore>(repo))
+ PrivateImplementationPattern<UnavailableRepositoryStore>(repo)
{
_populate(env, f);
}
diff --git a/paludis/repositories/unpackaged/installed_id.cc b/paludis/repositories/unpackaged/installed_id.cc
index 20b1fd34b..a4a2313a9 100644
--- a/paludis/repositories/unpackaged/installed_id.cc
+++ b/paludis/repositories/unpackaged/installed_id.cc
@@ -479,7 +479,7 @@ const std::shared_ptr<Set<std::string> > Implementation<InstalledUnpackagedID>::
InstalledUnpackagedID::InstalledUnpackagedID(const Environment * const e, const QualifiedPackageName & q,
const VersionSpec & v, const SlotName & s, const RepositoryName & n, const FSEntry & l,
const std::string &, const FSEntry & ro, const NDBAM * const d) :
- PrivateImplementationPattern<InstalledUnpackagedID>(new Implementation<InstalledUnpackagedID>(e, this, q, v, s, n, l, ro, d)),
+ PrivateImplementationPattern<InstalledUnpackagedID>(e, this, q, v, s, n, l, ro, d),
_imp(PrivateImplementationPattern<InstalledUnpackagedID>::_imp)
{
add_metadata_key(_imp->fs_location_key);
diff --git a/paludis/repositories/unpackaged/installed_repository.cc b/paludis/repositories/unpackaged/installed_repository.cc
index 29cd3d81a..e37da7668 100644
--- a/paludis/repositories/unpackaged/installed_repository.cc
+++ b/paludis/repositories/unpackaged/installed_repository.cc
@@ -90,7 +90,7 @@ namespace paludis
InstalledUnpackagedRepository::InstalledUnpackagedRepository(
const RepositoryName & n, const InstalledUnpackagedRepositoryParams & p) :
- PrivateImplementationPattern<InstalledUnpackagedRepository>(new Implementation<InstalledUnpackagedRepository>(p)),
+ PrivateImplementationPattern<InstalledUnpackagedRepository>(p),
Repository(p.environment(), n, make_named_values<RepositoryCapabilities>(
n::destination_interface() = this,
n::environment_variable_interface() = static_cast<RepositoryEnvironmentVariableInterface *>(0),
diff --git a/paludis/repositories/unpackaged/unpackaged_id.cc b/paludis/repositories/unpackaged/unpackaged_id.cc
index 70a8045d2..9bfc395d0 100644
--- a/paludis/repositories/unpackaged/unpackaged_id.cc
+++ b/paludis/repositories/unpackaged/unpackaged_id.cc
@@ -100,7 +100,7 @@ namespace paludis
UnpackagedID::UnpackagedID(const Environment * const e, const QualifiedPackageName & q,
const VersionSpec & v, const SlotName & s, const RepositoryName & n, const FSEntry & l,
const std::string & b, const std::string & r, const std::string & d) :
- PrivateImplementationPattern<UnpackagedID>(new Implementation<UnpackagedID>(e, q, v, s, n, l, b, r, d, this)),
+ PrivateImplementationPattern<UnpackagedID>(e, q, v, s, n, l, b, r, d, this),
_imp(PrivateImplementationPattern<UnpackagedID>::_imp)
{
add_metadata_key(_imp->slot_key);
diff --git a/paludis/repositories/unpackaged/unpackaged_key.cc b/paludis/repositories/unpackaged/unpackaged_key.cc
index 52551d5e0..d9069a5d3 100644
--- a/paludis/repositories/unpackaged/unpackaged_key.cc
+++ b/paludis/repositories/unpackaged/unpackaged_key.cc
@@ -64,7 +64,7 @@ UnpackagedDependencyKey::UnpackagedDependencyKey(const Environment * const env,
const std::string & r, const std::string & h, const MetadataKeyType t,
const std::shared_ptr<const DependenciesLabelSequence> & l,
const std::string & v) :
- PrivateImplementationPattern<UnpackagedDependencyKey>(new Implementation<UnpackagedDependencyKey>(env, v, l, r, h, t))
+ PrivateImplementationPattern<UnpackagedDependencyKey>(env, v, l, r, h, t)
{
}
@@ -147,7 +147,7 @@ namespace paludis
UnpackagedChoicesKey::UnpackagedChoicesKey(const Environment * const env, const std::string & r, const std::string & h,
const MetadataKeyType t, const UnpackagedID * const id) :
- PrivateImplementationPattern<UnpackagedChoicesKey>(new Implementation<UnpackagedChoicesKey>(env, id, r, h, t))
+ PrivateImplementationPattern<UnpackagedChoicesKey>(env, id, r, h, t)
{
}
diff --git a/paludis/repositories/unpackaged/unpackaged_repository.cc b/paludis/repositories/unpackaged/unpackaged_repository.cc
index b0a963e7c..c3f6d1415 100644
--- a/paludis/repositories/unpackaged/unpackaged_repository.cc
+++ b/paludis/repositories/unpackaged/unpackaged_repository.cc
@@ -94,7 +94,7 @@ namespace paludis
UnpackagedRepository::UnpackagedRepository(const RepositoryName & n,
const UnpackagedRepositoryParams & params) :
- PrivateImplementationPattern<UnpackagedRepository>(new Implementation<UnpackagedRepository>(n, params)),
+ PrivateImplementationPattern<UnpackagedRepository>(n, params),
Repository(params.environment(), n, make_named_values<RepositoryCapabilities>(
n::destination_interface() = static_cast<RepositoryDestinationInterface *>(0),
n::environment_variable_interface() = static_cast<RepositoryEnvironmentVariableInterface *>(0),
diff --git a/paludis/repositories/unpackaged/unpackaged_stripper.cc b/paludis/repositories/unpackaged/unpackaged_stripper.cc
index ddd7386f9..0dd34bb72 100644
--- a/paludis/repositories/unpackaged/unpackaged_stripper.cc
+++ b/paludis/repositories/unpackaged/unpackaged_stripper.cc
@@ -48,7 +48,7 @@ UnpackagedStripper::UnpackagedStripper(const UnpackagedStripperOptions & options
n::split() = options.split(),
n::strip() = options.strip()
)),
- PrivateImplementationPattern<UnpackagedStripper>(new Implementation<UnpackagedStripper>(options)),
+ PrivateImplementationPattern<UnpackagedStripper>(options),
_imp(PrivateImplementationPattern<UnpackagedStripper>::_imp)
{
}
diff --git a/paludis/repositories/unwritten/unwritten_id.cc b/paludis/repositories/unwritten/unwritten_id.cc
index 61270f34f..596b50b99 100644
--- a/paludis/repositories/unwritten/unwritten_id.cc
+++ b/paludis/repositories/unwritten/unwritten_id.cc
@@ -76,7 +76,7 @@ namespace paludis
}
UnwrittenID::UnwrittenID(const UnwrittenIDParams & entry) :
- PrivateImplementationPattern<UnwrittenID>(new Implementation<UnwrittenID>(entry)),
+ PrivateImplementationPattern<UnwrittenID>(entry),
_imp(PrivateImplementationPattern<UnwrittenID>::_imp)
{
if (_imp->slot_key)
diff --git a/paludis/repositories/unwritten/unwritten_repository.cc b/paludis/repositories/unwritten/unwritten_repository.cc
index 8e979b141..fcdfb4ad7 100644
--- a/paludis/repositories/unwritten/unwritten_repository.cc
+++ b/paludis/repositories/unwritten/unwritten_repository.cc
@@ -85,7 +85,7 @@ UnwrittenRepositoryConfigurationError::UnwrittenRepositoryConfigurationError(con
}
UnwrittenRepository::UnwrittenRepository(const UnwrittenRepositoryParams & p) :
- PrivateImplementationPattern<UnwrittenRepository>(new Implementation<UnwrittenRepository>(this, p)),
+ PrivateImplementationPattern<UnwrittenRepository>(this, p),
Repository(
p.environment(),
p.name(),
diff --git a/paludis/repositories/unwritten/unwritten_repository_file.cc b/paludis/repositories/unwritten/unwritten_repository_file.cc
index 28184c446..04dedd41f 100644
--- a/paludis/repositories/unwritten/unwritten_repository_file.cc
+++ b/paludis/repositories/unwritten/unwritten_repository_file.cc
@@ -63,7 +63,7 @@ namespace paludis
}
UnwrittenRepositoryFile::UnwrittenRepositoryFile(const FSEntry & f) :
- PrivateImplementationPattern<UnwrittenRepositoryFile>(new Implementation<UnwrittenRepositoryFile>)
+ PrivateImplementationPattern<UnwrittenRepositoryFile>()
{
_load(f);
}
diff --git a/paludis/repositories/unwritten/unwritten_repository_store.cc b/paludis/repositories/unwritten/unwritten_repository_store.cc
index bbb5d4e1d..63164e502 100644
--- a/paludis/repositories/unwritten/unwritten_repository_store.cc
+++ b/paludis/repositories/unwritten/unwritten_repository_store.cc
@@ -74,7 +74,7 @@ UnwrittenRepositoryStore::UnwrittenRepositoryStore(
const Environment * const env,
const UnwrittenRepository * const repo,
const FSEntry & f) :
- PrivateImplementationPattern<UnwrittenRepositoryStore>(new Implementation<UnwrittenRepositoryStore>(repo))
+ PrivateImplementationPattern<UnwrittenRepositoryStore>(repo)
{
_populate(env, f);
}
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);