1
0
Fork 0

Fix cmpiler warning.

Modified Files:
	Rotorpart.cpp Rotorpart.hpp
This commit is contained in:
frohlich 2009-03-12 19:37:32 +00:00 committed by Tim Moore
parent f9f9350b96
commit 7cb7ba9f90
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ void Rotorpart::setRotor(Rotor *rotor)
_rotor=rotor; _rotor=rotor;
} }
void Rotorpart::setParameter(char *parametername, float value) void Rotorpart::setParameter(const char *parametername, float value)
{ {
#define p(a) if (strcmp(parametername,#a)==0) _##a = value; else #define p(a) if (strcmp(parametername,#a)==0) _##a = value; else

View file

@ -69,7 +69,7 @@ namespace yasim {
void setAlpha0(float f); void setAlpha0(float f);
void setAlpha0factor(float f); void setAlpha0factor(float f);
void setLen(float value); void setLen(float value);
void setParameter(char *parametername, float value); void setParameter(const char *parametername, float value);
void setRotor(Rotor *rotor); void setRotor(Rotor *rotor);
void setTorqueOfInertia(float toi); void setTorqueOfInertia(float toi);
void writeInfo(std::ostringstream &buffer); void writeInfo(std::ostringstream &buffer);