diff --git a/src/FDM/YASim/Rotorpart.cpp b/src/FDM/YASim/Rotorpart.cpp index 873699002..77520dee9 100644 --- a/src/FDM/YASim/Rotorpart.cpp +++ b/src/FDM/YASim/Rotorpart.cpp @@ -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 diff --git a/src/FDM/YASim/Rotorpart.hpp b/src/FDM/YASim/Rotorpart.hpp index 05b945b37..8d68fa98f 100644 --- a/src/FDM/YASim/Rotorpart.hpp +++ b/src/FDM/YASim/Rotorpart.hpp @@ -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);