From d4a4428e648eeffadfa54895e9a0c18930e363cf Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 8 Jul 2007 08:43:15 +0000 Subject: [PATCH] Modified Files: simgear/route/waypoint.hxx simgear/route/waypoint.cxx: Use const refs where possible. --- simgear/route/waypoint.cxx | 2 +- simgear/route/waypoint.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5