Codechange: use default dtor instead of empty (#10826)

This commit is contained in:
Patric Stout
2023-05-14 23:31:03 +02:00
committed by GitHub
parent 7634553d22
commit 199e41c762
35 changed files with 40 additions and 62 deletions

View File

@@ -37,7 +37,7 @@ public:
/**
* Virtual destructor has to be defined because of virtual Run().
*/
virtual ~DemandHandler() {}
virtual ~DemandHandler() = default;
};
#endif /* DEMANDS_H */

View File

@@ -30,10 +30,6 @@ public:
FlowMapper(bool scale) : scale(scale) {}
virtual void Run(LinkGraphJob &job) const;
/**
* Virtual destructor has to be defined because of virtual Run().
*/
virtual ~FlowMapper() {}
private:
/**

View File

@@ -17,11 +17,6 @@ public:
* @param job Job to be initialized.
*/
virtual void Run(LinkGraphJob &job) const { job.Init(); }
/**
* Virtual destructor has to be defined because of virtual Run().
*/
virtual ~InitHandler() {}
};
#endif /* INIT_H */

View File

@@ -23,7 +23,7 @@ public:
/**
* Destroy the handler. Must be given due to virtual Run.
*/
virtual ~ComponentHandler() {}
virtual ~ComponentHandler() = default;
/**
* Run the handler. A link graph handler must not read or write any data

View File

@@ -81,11 +81,6 @@ public:
* @param graph Component to be calculated.
*/
virtual void Run(LinkGraphJob &job) const { Tpass pass(job); }
/**
* Destructor. Has to be given because of virtual Run().
*/
virtual ~MCFHandler() {}
};
#endif /* MCF_H */