aboutsummaryrefslogtreecommitdiff
path: root/paludis/partially_made_package_dep_spec.cc
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-08-05 23:51:36 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-08-06 11:58:04 -0700
commit64ba7d5be854122e1a5ec2c17949634abebca250 (patch)
tree23a645693d6bfea50c5c7d2c32da5d194944609b /paludis/partially_made_package_dep_spec.cc
parent1ad5f5ce2025f1db0ea5dd1fcf72223430f143b4 (diff)
downloadpaludis-64ba7d5be854122e1a5ec2c17949634abebca250.tar.gz
paludis-64ba7d5be854122e1a5ec2c17949634abebca250.tar.xz
modernize: use default method synthesis
Convert a number of destructors to default synthesized functions. Try to inline a few instances into the header. It should be possible to inline all of them, however, gcc seems to emit a number of warnings. Furthermore, some of the destructors are pure-virtualed, but provide an implementation. Placing the definition into the header causes ODR violations.
Diffstat (limited to 'paludis/partially_made_package_dep_spec.cc')
-rw-r--r--paludis/partially_made_package_dep_spec.cc22
1 files changed, 2 insertions, 20 deletions
diff --git a/paludis/partially_made_package_dep_spec.cc b/paludis/partially_made_package_dep_spec.cc
index e3851a7fa..82ed7b042 100644
--- a/paludis/partially_made_package_dep_spec.cc
+++ b/paludis/partially_made_package_dep_spec.cc
@@ -93,23 +93,7 @@ namespace
additional_requirements->back_inserter());
}
- PartiallyMadePackageDepSpecData(const PartiallyMadePackageDepSpecData & other) :
- PackageDepSpecData(other),
- package(other.package),
- package_name_part(other.package_name_part),
- category_name_part(other.category_name_part),
- version_requirements(other.version_requirements),
- version_requirements_mode_v(other.version_requirements_mode_v),
- slot(other.slot),
- in_repository(other.in_repository),
- from_repository(other.from_repository),
- installable_to_repository(other.installable_to_repository),
- installed_at_path(other.installed_at_path),
- installable_to_path(other.installable_to_path),
- additional_requirements(other.additional_requirements),
- options_for_partially_made_package_dep_spec_v(other.options_for_partially_made_package_dep_spec_v)
- {
- }
+ PartiallyMadePackageDepSpecData(const PartiallyMadePackageDepSpecData & other) = default;
std::string as_string() const override
{
@@ -383,9 +367,7 @@ PartiallyMadePackageDepSpec::PartiallyMadePackageDepSpec(const PackageDepSpec &
{
}
-PartiallyMadePackageDepSpec::~PartiallyMadePackageDepSpec()
-{
-}
+PartiallyMadePackageDepSpec::~PartiallyMadePackageDepSpec() = default;
PartiallyMadePackageDepSpec &
PartiallyMadePackageDepSpec::package(const QualifiedPackageName & name)