diff options
author | 2016-08-05 23:51:36 -0700 | |
---|---|---|
committer | 2016-08-06 11:58:04 -0700 | |
commit | 64ba7d5be854122e1a5ec2c17949634abebca250 (patch) | |
tree | 23a645693d6bfea50c5c7d2c32da5d194944609b /paludis/package_id.cc | |
parent | 1ad5f5ce2025f1db0ea5dd1fcf72223430f143b4 (diff) | |
download | paludis-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/package_id.cc')
-rw-r--r-- | paludis/package_id.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/paludis/package_id.cc b/paludis/package_id.cc index b870c2e82..abc0157b5 100644 --- a/paludis/package_id.cc +++ b/paludis/package_id.cc @@ -71,9 +71,7 @@ PackageID::PackageID() : { } -PackageID::~PackageID() -{ -} +PackageID::~PackageID() = default; void PackageID::add_mask(const std::shared_ptr<const Mask> & k) const @@ -186,9 +184,7 @@ PackageIDComparator::PackageIDComparator(const PackageIDComparator & other) : _imp->m = other._imp->m; } -PackageIDComparator::~PackageIDComparator() -{ -} +PackageIDComparator::~PackageIDComparator() = default; bool PackageIDComparator::operator() (const std::shared_ptr<const PackageID> & a, |