Replace virtual keyword by override

virtual can be ambiguous. Applied changes correspond to clang-tidy fixes
stemming from the modernize-use-override check.

Change-Id: I973afd4680a5df587419777504aeb94467196b89
This commit is contained in:
Sergiu Deitsch
2022-02-09 00:34:05 +01:00
parent 2092a720ec
commit 484d3414e4
74 changed files with 150 additions and 150 deletions
@@ -89,7 +89,7 @@ class DynamicNumericDiffCostFunction : public DynamicCostFunction {
DynamicNumericDiffCostFunction&& other)
: functor_(std::move(other.functor_)), ownership_(other.ownership_) {}
virtual ~DynamicNumericDiffCostFunction() {
~DynamicNumericDiffCostFunction() override {
if (ownership_ != TAKE_OWNERSHIP) {
functor_.release();
}