Skip to content

Commit

Permalink
AP_Common: move constructor to header to allow inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Nov 18, 2024
1 parent 4773571 commit ed37ee8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions libraries/AP_Common/Location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
#include <AP_AHRS/AP_AHRS.h>
#include <AP_Terrain/AP_Terrain.h>

/// constructors
Location::Location()
{
zero();
}

const Location definitely_zero{};
bool Location::is_zero(void) const
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_Common/Location.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Location
};

/// constructors
Location();
Location() { zero(); }
Location(int32_t latitude, int32_t longitude, int32_t alt_in_cm, AltFrame frame);
Location(const Vector3f &ekf_offset_neu, AltFrame frame);
Location(const Vector3d &ekf_offset_neu, AltFrame frame);
Expand Down

0 comments on commit ed37ee8

Please sign in to comment.