From: frohlich Date: Sun, 8 Jul 2007 08:43:15 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d4a4428e648eeffadfa54895e9a0c18930e363cf;p=simgear.git Modified Files: simgear/route/waypoint.hxx simgear/route/waypoint.cxx: Use const refs where possible. --- diff --git a/simgear/route/waypoint.cxx b/simgear/route/waypoint.cxx index 286fe1cc..b56b25ba 100644 --- a/simgear/route/waypoint.cxx +++ b/simgear/route/waypoint.cxx @@ -32,7 +32,7 @@ // Constructor 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_lat = lat; target_alt = alt; diff --git a/simgear/route/waypoint.hxx b/simgear/route/waypoint.hxx index 2d995a3d..9c93314f 100644 --- a/simgear/route/waypoint.hxx +++ b/simgear/route/waypoint.hxx @@ -91,7 +91,7 @@ public: */ SGWayPoint( const double lon = 0.0, const double lat = 0.0, const double alt = 0.0, const modetype m = WGS84, - const string s = "", const string n = "" ); + const string& s = "", const string& n = "" ); /** Destructor */ ~SGWayPoint();