MissouriMRDT / Autonomy_Software

Found redundant use of constructor on return, instead use the braced initializer list CXX-W2033
Anti-pattern
Minor
4 days ago14 days old
avoid repeating the return type from the declaration; use a braced initializer list instead
864              tempLat,
865              tempLon);
866
867    return geoops::RoverPose(stCurrentVIOPosition, dCurrentHeading);868}
869
870/******************************************************************************
avoid repeating the return type from the declaration; use a braced initializer list instead
522        LOG_ERROR(logging::g_qSharedLogger, "Attempted to pop a waypoint from the WaypointHandler but it is empty!");
523
524        // Return an empty waypoint.
525        return geoops::Waypoint(geoops::GPSCoordinate(), geoops::WaypointType::eUNKNOWN);526    }
527}
528