remove "virtual" keyword for functions with "override"

release/4.3a0
David Wisth 2021-12-08 21:12:46 +00:00
parent ab73e03ad4
commit 45d5328457
1 changed files with 4 additions and 5 deletions

View File

@ -45,9 +45,8 @@ class PoseToPointFactor : public NoiseModelFactor2<POSE, POINT> {
/** implement functions needed for Testable */
/** print */
virtual void print(
const std::string& s,
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override {
void print(const std::string& s, const KeyFormatter& keyFormatter =
DefaultKeyFormatter) const override {
std::cout << s << "PoseToPointFactor(" << keyFormatter(this->key1()) << ","
<< keyFormatter(this->key2()) << ")\n"
<< " measured: " << measured_.transpose() << std::endl;
@ -55,8 +54,8 @@ class PoseToPointFactor : public NoiseModelFactor2<POSE, POINT> {
}
/** equals */
virtual bool equals(const NonlinearFactor& expected,
double tol = 1e-9) const override {
bool equals(const NonlinearFactor& expected,
double tol = 1e-9) const override {
const This* e = dynamic_cast<const This*>(&expected);
return e != nullptr && Base::equals(*e, tol) &&
traits<POINT>::Equals(this->measured_, e->measured_, tol);