1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-16 10:09:58 +00:00

Add explicit keyword

See https://google.github.io/styleguide/cppguide.html#Explicit_Constructors
This commit is contained in:
Carles Fernandez 2019-06-29 22:32:29 +02:00
parent b6e9ba5877
commit 7264888487
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
class TransitionModel : public ModelFunction
{
public:
TransitionModel(const arma::mat& kf_F) { coeff_mat = kf_F; };
explicit TransitionModel(const arma::mat& kf_F) { coeff_mat = kf_F; };
virtual arma::vec operator()(const arma::vec& input) { return coeff_mat * input; };
private:
@ -49,7 +49,7 @@ private:
class MeasurementModel : public ModelFunction
{
public:
MeasurementModel(const arma::mat& kf_H) { coeff_mat = kf_H; };
explicit MeasurementModel(const arma::mat& kf_H) { coeff_mat = kf_H; };
virtual arma::vec operator()(const arma::vec& input) { return coeff_mat * input; };
private:

View File

@ -39,7 +39,7 @@
class TransitionModelUKF : public ModelFunction
{
public:
TransitionModelUKF(const arma::mat& kf_F) { coeff_mat = kf_F; };
explicit TransitionModelUKF(const arma::mat& kf_F) { coeff_mat = kf_F; };
virtual arma::vec operator()(const arma::vec& input) { return coeff_mat * input; };
private:
@ -49,7 +49,7 @@ private:
class MeasurementModelUKF : public ModelFunction
{
public:
MeasurementModelUKF(const arma::mat& kf_H) { coeff_mat = kf_H; };
explicit MeasurementModelUKF(const arma::mat& kf_H) { coeff_mat = kf_H; };
virtual arma::vec operator()(const arma::vec& input) { return coeff_mat * input; };
private: