aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_mask.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/repositories/e/e_mask.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/repositories/e/e_mask.cc')
-rw-r--r--paludis/repositories/e/e_mask.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/paludis/repositories/e/e_mask.cc b/paludis/repositories/e/e_mask.cc
index 36499d315..cafee131a 100644
--- a/paludis/repositories/e/e_mask.cc
+++ b/paludis/repositories/e/e_mask.cc
@@ -53,9 +53,7 @@ EUnacceptedMask::EUnacceptedMask(const char k, const std::string & d, const std:
{
}
-EUnacceptedMask::~EUnacceptedMask()
-{
-}
+EUnacceptedMask::~EUnacceptedMask() = default;
char
EUnacceptedMask::key() const
@@ -98,9 +96,7 @@ EUnsupportedMask::EUnsupportedMask(const char k, const std::string & d, const st
{
}
-EUnsupportedMask::~EUnsupportedMask()
-{
-}
+EUnsupportedMask::~EUnsupportedMask() = default;
char
EUnsupportedMask::key() const
@@ -150,9 +146,7 @@ ERepositoryMask::ERepositoryMask(const char k, const std::string & d, const std:
{
}
-ERepositoryMask::~ERepositoryMask()
-{
-}
+ERepositoryMask::~ERepositoryMask() = default;
char
ERepositoryMask::key() const