aboutsummaryrefslogtreecommitdiff
path: root/python
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 /python
parent99ca317486703808bec65846a6266afdace5d0f7 (diff)
downloadpaludis-4209b95ecc83365718b3dd5556a6866a662e95c5.tar.gz
paludis-4209b95ecc83365718b3dd5556a6866a662e95c5.tar.xz
Less verbose PrivateImplementationPattern
Diffstat (limited to 'python')
-rw-r--r--python/dep_spec.cc50
-rw-r--r--python/exception.cc2
2 files changed, 26 insertions, 26 deletions
diff --git a/python/dep_spec.cc b/python/dep_spec.cc
index d1b336521..5498b5d25 100644
--- a/python/dep_spec.cc
+++ b/python/dep_spec.cc
@@ -111,7 +111,7 @@ namespace paludis
}
PythonCompositeDepSpec::PythonCompositeDepSpec() :
- PrivateImplementationPattern<PythonCompositeDepSpec>(new Implementation<PythonCompositeDepSpec>)
+ PrivateImplementationPattern<PythonCompositeDepSpec>()
{
}
@@ -214,18 +214,18 @@ deep_copy(const std::shared_ptr<const T_> & x)
PythonPackageDepSpec::PythonPackageDepSpec(const PackageDepSpec & p) :
PythonStringDepSpec(p.text()),
- PrivateImplementationPattern<PythonPackageDepSpec>(new Implementation<PythonPackageDepSpec>(
- deep_copy(p.package_ptr()),
- deep_copy(p.category_name_part_ptr()),
- deep_copy(p.package_name_part_ptr()),
- std::make_shared<VersionRequirements>(),
- p.version_requirements_mode(),
- p.slot_requirement_ptr(),
- deep_copy(p.in_repository_ptr()),
- deep_copy(p.from_repository_ptr()),
- p.additional_requirements_ptr(),
- p.tag(),
- stringify(p)))
+ PrivateImplementationPattern<PythonPackageDepSpec>(
+ deep_copy(p.package_ptr()),
+ deep_copy(p.category_name_part_ptr()),
+ deep_copy(p.package_name_part_ptr()),
+ std::make_shared<VersionRequirements>(),
+ p.version_requirements_mode(),
+ p.slot_requirement_ptr(),
+ deep_copy(p.in_repository_ptr()),
+ deep_copy(p.from_repository_ptr()),
+ p.additional_requirements_ptr(),
+ p.tag(),
+ stringify(p))
{
if (p.version_requirements_ptr())
{
@@ -236,18 +236,18 @@ PythonPackageDepSpec::PythonPackageDepSpec(const PackageDepSpec & p) :
PythonPackageDepSpec::PythonPackageDepSpec(const PythonPackageDepSpec & p) :
PythonStringDepSpec(p.text()),
- PrivateImplementationPattern<PythonPackageDepSpec>(new Implementation<PythonPackageDepSpec>(
- deep_copy(p.package_ptr()),
- deep_copy(p.category_name_part_ptr()),
- deep_copy(p.package_name_part_ptr()),
- std::make_shared<VersionRequirements>(),
- p.version_requirements_mode(),
- p.slot_requirement_ptr(),
- deep_copy(p.in_repository_ptr()),
- deep_copy(p.from_repository_ptr()),
- p.additional_requirements_ptr(),
- p.tag(),
- p.py_str()))
+ PrivateImplementationPattern<PythonPackageDepSpec>(
+ deep_copy(p.package_ptr()),
+ deep_copy(p.category_name_part_ptr()),
+ deep_copy(p.package_name_part_ptr()),
+ std::make_shared<VersionRequirements>(),
+ p.version_requirements_mode(),
+ p.slot_requirement_ptr(),
+ deep_copy(p.in_repository_ptr()),
+ deep_copy(p.from_repository_ptr()),
+ p.additional_requirements_ptr(),
+ p.tag(),
+ p.py_str())
{
std::copy(p.version_requirements_ptr()->begin(), p.version_requirements_ptr()->end(),
_imp->version_requirements->back_inserter());
diff --git a/python/exception.cc b/python/exception.cc
index 748380de4..a191f03b0 100644
--- a/python/exception.cc
+++ b/python/exception.cc
@@ -46,7 +46,7 @@ namespace paludis
}
ExceptionRegister::ExceptionRegister() :
- PrivateImplementationPattern<ExceptionRegister>(new Implementation<ExceptionRegister>)
+ PrivateImplementationPattern<ExceptionRegister>()
{
}