mirror of https://github.com/ArduPilot/ardupilot
Location: operator= uses const reference
This commit is contained in:
parent
d6309a3a1a
commit
5161d63f8b
|
@ -56,7 +56,7 @@ Location_Class::Location_Class(const Vector3f &ekf_offset_neu)
|
|||
}
|
||||
}
|
||||
|
||||
Location_Class& Location_Class::operator=(const struct Location loc)
|
||||
Location_Class& Location_Class::operator=(const struct Location &loc)
|
||||
{
|
||||
lat = loc.lat;
|
||||
lng = loc.lng;
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
static void set_terrain(AP_Terrain* terrain) { _terrain = terrain; }
|
||||
|
||||
// operators
|
||||
Location_Class& operator=(const struct Location loc);
|
||||
Location_Class& operator=(const struct Location &loc);
|
||||
|
||||
// set altitude
|
||||
void set_alt_cm(int32_t alt_cm, ALT_FRAME frame);
|
||||
|
|
Loading…
Reference in New Issue