1
0
Fork 0

src/FDM/JSBSim/models/FGPropagate.{h,cpp}: Do not return reference to local.

This commit is contained in:
Anders Gidenstam 2013-06-11 22:13:16 +02:00
parent f9689a561c
commit 9c8d2e046d
2 changed files with 8 additions and 1 deletions

View 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;

View 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