aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/job_state.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/resolver/job_state.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/resolver/job_state.cc')
-rw-r--r--paludis/resolver/job_state.cc16
1 files changed, 4 insertions, 12 deletions
diff --git a/paludis/resolver/job_state.cc b/paludis/resolver/job_state.cc
index c7f7d0d81..f2e6e0b7d 100644
--- a/paludis/resolver/job_state.cc
+++ b/paludis/resolver/job_state.cc
@@ -55,9 +55,7 @@ namespace paludis
};
}
-JobState::~JobState()
-{
-}
+JobState::~JobState() = default;
const std::shared_ptr<JobState>
JobState::deserialise(Deserialisation & d)
@@ -111,9 +109,7 @@ JobActiveState::JobActiveState() :
{
}
-JobActiveState::~JobActiveState()
-{
-}
+JobActiveState::~JobActiveState() = default;
void
JobActiveState::set_output_manager(const std::shared_ptr<OutputManager> & m)
@@ -159,9 +155,7 @@ JobSucceededState::JobSucceededState(const std::shared_ptr<OutputManager> & m) :
{
}
-JobSucceededState::~JobSucceededState()
-{
-}
+JobSucceededState::~JobSucceededState() = default;
const std::shared_ptr<OutputManager>
JobSucceededState::output_manager() const
@@ -189,9 +183,7 @@ JobFailedState::JobFailedState(const std::shared_ptr<OutputManager> & m) :
{
}
-JobFailedState::~JobFailedState()
-{
-}
+JobFailedState::~JobFailedState() = default;
const std::shared_ptr<OutputManager>
JobFailedState::output_manager() const