Skip to content
Snippets Groups Projects
Verified Commit 15b6e6e6 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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

Automatically detected by clang-tidy with modernize-use-override check.
parent 9d98811c
Branches
No related tags found
No related merge requests found
/* /*
* Copyright © 2021 Dynare Team * Copyright © 2021-2023 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -37,7 +37,6 @@ private: ...@@ -37,7 +37,6 @@ private:
public: public:
explicit ObjectiveMFile(const std::string& modName, int ntt_arg); 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, void eval(const Vector& y, const Vector& x, const Vector& params, Vector& residual,
std::vector<TwoDMatrix>& md) override; std::vector<TwoDMatrix>& md) override;
}; };
......
...@@ -101,7 +101,7 @@ private: ...@@ -101,7 +101,7 @@ private:
public: public:
// construct and load Dynamic model DLL // construct and load Dynamic model DLL
explicit DynamicModelDLL(const std::string& fname, int ntt_arg, int order); 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, void eval(const Vector& y, const Vector& x, const Vector& params, const Vector& ySteady,
Vector& residual, std::vector<TwoDMatrix>& md) override; Vector& residual, std::vector<TwoDMatrix>& md) override;
......
/* /*
* Copyright © 2010-2022 Dynare Team * Copyright © 2010-2023 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
...@@ -45,7 +45,6 @@ private: ...@@ -45,7 +45,6 @@ private:
public: public:
explicit DynamicModelMFile(const std::string& modName, int ntt_arg); 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, void eval(const Vector& y, const Vector& x, const Vector& params, const Vector& ySteady,
Vector& residual, std::vector<TwoDMatrix>& md) override; Vector& residual, std::vector<TwoDMatrix>& md) override;
}; };
......
...@@ -80,7 +80,6 @@ public: ...@@ -80,7 +80,6 @@ public:
DynamicModelDllCaller(size_t ntt, mwIndex ny, mwIndex nx, const double* params_arg, DynamicModelDllCaller(size_t ntt, mwIndex ny, mwIndex nx, const double* params_arg,
const double* steady_state_arg, const int32_T* g1_sparse_colptr_arg, const double* steady_state_arg, const int32_T* g1_sparse_colptr_arg,
bool linear_arg, bool compute_jacobian_arg); bool linear_arg, bool compute_jacobian_arg);
virtual ~DynamicModelDllCaller() = default;
[[nodiscard]] double* [[nodiscard]] double*
y() override y() override
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment