Codechange: Add missing override specifiers.
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
||||
* Call the demand calculator on the given component.
|
||||
* @param job Component to calculate the demands for.
|
||||
*/
|
||||
virtual void Run(LinkGraphJob &job) const { DemandCalculator c(job); }
|
||||
void Run(LinkGraphJob &job) const override { DemandCalculator c(job); }
|
||||
|
||||
/**
|
||||
* Virtual destructor has to be defined because of virtual Run().
|
||||
|
@@ -28,7 +28,7 @@ public:
|
||||
* values. Only do that on the very last flow mapping.
|
||||
*/
|
||||
FlowMapper(bool scale) : scale(scale) {}
|
||||
virtual void Run(LinkGraphJob &job) const;
|
||||
void Run(LinkGraphJob &job) const override;
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -16,7 +16,7 @@ public:
|
||||
* Initialize the link graph job.
|
||||
* @param job Job to be initialized.
|
||||
*/
|
||||
virtual void Run(LinkGraphJob &job) const { job.Init(); }
|
||||
void Run(LinkGraphJob &job) const override { job.Init(); }
|
||||
};
|
||||
|
||||
#endif /* INIT_H */
|
||||
|
@@ -80,7 +80,7 @@ public:
|
||||
* Run the calculation.
|
||||
* @param graph Component to be calculated.
|
||||
*/
|
||||
virtual void Run(LinkGraphJob &job) const { Tpass pass(job); }
|
||||
void Run(LinkGraphJob &job) const override { Tpass pass(job); }
|
||||
};
|
||||
|
||||
#endif /* MCF_H */
|
||||
|
Reference in New Issue
Block a user