MEX files: no longer use “virtual” keyword when overriding a method

Automatically detected by clang-tidy with modernize-use-override check.
new-samplers
Sébastien Villemot 2023-12-06 16:24:46 +01:00
parent 9d98811cfc
commit 15b6e6e6b3
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
4 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2021 Dynare Team
* Copyright © 2021-2023 Dynare Team
*
* This file is part of Dynare.
*
@ -37,7 +37,6 @@ private:
public:
explicit ObjectiveMFile(const std::string& modName, int ntt_arg);
virtual ~ObjectiveMFile() = default;
void eval(const Vector& y, const Vector& x, const Vector& params, Vector& residual,
std::vector<TwoDMatrix>& md) override;
};

View File

@ -101,7 +101,7 @@ private:
public:
// construct and load Dynamic model DLL
explicit DynamicModelDLL(const std::string& fname, int ntt_arg, int order);
virtual ~DynamicModelDLL();
~DynamicModelDLL() override;
void eval(const Vector& y, const Vector& x, const Vector& params, const Vector& ySteady,
Vector& residual, std::vector<TwoDMatrix>& md) override;

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2010-2022 Dynare Team
* Copyright © 2010-2023 Dynare Team
*
* This file is part of Dynare.
*
@ -45,7 +45,6 @@ private:
public:
explicit DynamicModelMFile(const std::string& modName, int ntt_arg);
virtual ~DynamicModelMFile() = default;
void eval(const Vector& y, const Vector& x, const Vector& params, const Vector& ySteady,
Vector& residual, std::vector<TwoDMatrix>& md) override;
};

View File

@ -80,7 +80,6 @@ public:
DynamicModelDllCaller(size_t ntt, mwIndex ny, mwIndex nx, const double* params_arg,
const double* steady_state_arg, const int32_T* g1_sparse_colptr_arg,
bool linear_arg, bool compute_jacobian_arg);
virtual ~DynamicModelDllCaller() = default;
[[nodiscard]] double*
y() override
{