]> git.mxchange.org Git - flightgear.git/commitdiff
Fix returning reference to temporary.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 30 Oct 2011 09:31:41 +0000 (10:31 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 30 Oct 2011 09:31:41 +0000 (10:31 +0100)
src/Main/globals.cxx
src/Main/globals.hxx

index c4bb125a7151bd4add70f34c26453e08eac7f002..bf302987c420b556a250d75ac05d4b884caab755 100644 (file)
@@ -380,7 +380,7 @@ FGGlobals::get_aircraft_position() const
     throw sg_exception("Can't get aircraft position", "FGGlobals::get_aircraft_position()" );
 }
 
-const SGVec3d&
+SGVec3d
 FGGlobals::get_aircraft_positon_cart() const
 {
     return SGVec3d::fromGeod(get_aircraft_position());
index 365ce39887a96a71f413433adbb1bbb21e92f3ce..52df7f514927ef67ef245150ed71fd54777b3558 100644 (file)
@@ -267,7 +267,7 @@ public:
 
     const SGGeod & get_aircraft_position() const;
 
-    const SGVec3d& get_aircraft_positon_cart() const;
+    SGVec3d get_aircraft_positon_cart() const;
     
     inline FGModelMgr *get_model_mgr () { return model_mgr; }