]> git.mxchange.org Git - flightgear.git/commitdiff
src/FDM/JSBSim/models/FGPropagate.{h,cpp}: Do not return reference to local.
authorAnders Gidenstam <anders@gidenstam.org>
Tue, 11 Jun 2013 20:13:16 +0000 (22:13 +0200)
committerAnders Gidenstam <anders@gidenstam.org>
Tue, 11 Jun 2013 20:15:03 +0000 (22:15 +0200)
src/FDM/JSBSim/models/FGPropagate.cpp
src/FDM/JSBSim/models/FGPropagate.h

index a0ca06c37089fd9836381aaa640c87ff24fa498d..86c9893bfdbca20c12577ec8af74e5c926bcca48 100644 (file)
@@ -559,6 +559,13 @@ void FGPropagate::SetLocation(const FGLocation& l)
 
 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
+FGColumnVector3 FGPropagate::GetEulerDeg(void) const
+{
+  return VState.qAttitudeLocal.GetEuler() * radtodeg;
+}
+
+//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 void FGPropagate::DumpState(void)
 {
   cout << endl;
index aead73c27936bdc8c4945db05f326ada522fafbc..4fd23ddc4ae630c2e76270a191d30c9bc0cc1afa 100644 (file)
@@ -262,7 +262,7 @@ public:
               angle about the Y axis, and the third item is the angle
               about the Z axis (Phi, Theta, Psi).
   */
-  const FGColumnVector3& GetEulerDeg(void) const { return VState.qAttitudeLocal.GetEuler() * radtodeg; }
+  FGColumnVector3 GetEulerDeg(void) const;
 
   /** Retrieves a body frame velocity component.
       Retrieves a body frame velocity component. The velocity returned is