]> git.mxchange.org Git - simgear.git/commitdiff
Fix bad interaction between CourseAndDistance overloads and use of implicit
authorjmt <jmt>
Tue, 9 Jun 2009 00:01:14 +0000 (00:01 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 11 Jun 2009 13:55:11 +0000 (15:55 +0200)
SGWaypoint construction from SGGeod.

simgear/route/waypoint.cxx
simgear/route/waypoint.hxx

index 697eb37458e4f59bfb53ce8dfbd50a3c3de514d0..189bc59bb38a0f3b117d8e7744e3939ab755083a 100644 (file)
@@ -81,5 +81,5 @@ void SGWayPoint::CourseAndDistance( const double cur_lon,
 // Calculate course and distances between two waypoints
 void SGWayPoint::CourseAndDistance( const SGWayPoint &wp,
                        double *course, double *dist ) const {
-    CourseAndDistance( wp.get_target(), course, dist );
+    CourseAndDistance( wp.get_target(), *course, *dist );
 }
index 2141200c40daa7c86b42161eae1acc75693f6323..dbd831d3648e41be117159603615a1b4d285b6a3 100644 (file)
@@ -92,7 +92,7 @@ public:
     /**
      * Construct from a geodetic position, in WGS84 coordinates
      */
-    SGWayPoint(const SGGeod& pos, const std::string& s = "", const std::string& n = "" );
+    SGWayPoint(const SGGeod& pos, const std::string& s, const std::string& n);
 
     /** Destructor */
     ~SGWayPoint();