Modified Files:
simgear/route/waypoint.hxx simgear/route/waypoint.cxx: Use const refs where possible.
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
SGWayPoint::SGWayPoint( const double lon, const double lat, const double alt,
|
SGWayPoint::SGWayPoint( const double lon, const double lat, const double alt,
|
||||||
const modetype m, const string s, const string n ) {
|
const modetype m, const string& s, const string& n ) {
|
||||||
target_lon = lon;
|
target_lon = lon;
|
||||||
target_lat = lat;
|
target_lat = lat;
|
||||||
target_alt = alt;
|
target_alt = alt;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
SGWayPoint( const double lon = 0.0, const double lat = 0.0,
|
SGWayPoint( const double lon = 0.0, const double lat = 0.0,
|
||||||
const double alt = 0.0, const modetype m = WGS84,
|
const double alt = 0.0, const modetype m = WGS84,
|
||||||
const string s = "", const string n = "" );
|
const string& s = "", const string& n = "" );
|
||||||
|
|
||||||
/** Destructor */
|
/** Destructor */
|
||||||
~SGWayPoint();
|
~SGWayPoint();
|
||||||
|
|||||||
Reference in New Issue
Block a user