Codechange: use default dtor instead of empty (#10826)
This commit is contained in:
@@ -37,7 +37,7 @@ public:
|
||||
/**
|
||||
* Virtual destructor has to be defined because of virtual Run().
|
||||
*/
|
||||
virtual ~DemandHandler() {}
|
||||
virtual ~DemandHandler() = default;
|
||||
};
|
||||
|
||||
#endif /* DEMANDS_H */
|
||||
|
@@ -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:
|
||||
|
||||
/**
|
||||
|
@@ -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 */
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user