remove "virtual" keyword for functions with "override"
parent
ab73e03ad4
commit
45d5328457
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue