Codechange: Add missing override specifiers.

This commit is contained in:
Peter Nelson
2023-04-13 07:23:18 +01:00
committed by PeterN
parent a454773a73
commit 49dae08a3b
34 changed files with 123 additions and 123 deletions

View File

@@ -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().

View File

@@ -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:

View File

@@ -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 */

View File

@@ -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 */