Fix cmpiler warning.
Modified Files: Rotorpart.cpp Rotorpart.hpp
This commit is contained in:
parent
f9f9350b96
commit
7cb7ba9f90
2 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ void Rotorpart::setRotor(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
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace yasim {
|
|||
void setAlpha0(float f);
|
||||
void setAlpha0factor(float f);
|
||||
void setLen(float value);
|
||||
void setParameter(char *parametername, float value);
|
||||
void setParameter(const char *parametername, float value);
|
||||
void setRotor(Rotor *rotor);
|
||||
void setTorqueOfInertia(float toi);
|
||||
void writeInfo(std::ostringstream &buffer);
|
||||
|
|
Loading…
Add table
Reference in a new issue