Fix override warning

release/4.3a0
Frank Dellaert 2020-08-18 22:27:02 -04:00
parent 8154dfd10b
commit 5a6bfed42c
1 changed files with 2 additions and 3 deletions

View File

@ -114,7 +114,7 @@ public:
/** implement functions needed to derive from Factor */
/* ************************************************************************* */
virtual double error(const Values& x) const {
double error(const Values &x) const override {
return whitenedError(x).squaredNorm();
}
@ -125,8 +125,7 @@ public:
* Hence \f$ b = z - h(x) = - \mathtt{error\_vector}(x) \f$
*/
/* This version of linearize recalculates the noise model each time */
virtual boost::shared_ptr<GaussianFactor> linearize(
const Values& x) const {
boost::shared_ptr<GaussianFactor> linearize(const Values &x) const override {
// Only linearize if the factor is active
if (!this->active(x))
return boost::shared_ptr<JacobianFactor>();