1
0
Fork 0

Casaba Halász: Fix some const warnings.

Modified Files:
	src/FDM/YASim/Rotor.cpp src/FDM/YASim/Rotor.hpp
	src/GUI/fonts.cxx
This commit is contained in:
frohlich 2009-03-03 07:58:20 +00:00 committed by Tim Moore
parent 8150f47155
commit b120d9dfb3
3 changed files with 3 additions and 3 deletions

View file

@ -699,7 +699,7 @@ void Rotor::setGlobalGround(double *global_ground, float* global_vel)
for(i=0; i<4; i++) _global_ground[i] = global_ground[i];
}
void Rotor::setParameter(char *parametername, float value)
void Rotor::setParameter(const char *parametername, float value)
{
#define p(a,b) if (strcmp(parametername,#a)==0) _##a = (value * (b)); else
p(translift_ve,1)

View file

@ -97,7 +97,7 @@ public:
void setAlphaoutput(int i, const char *text);
void setCcw(int ccw);
int getCcw() {return _ccw;};
void setParameter(char *parametername, float value);
void setParameter(const char *parametername, float value);
void setGlobalGround(double* global_ground, float* global_vel);
float getTorqueOfInertia();
int getValueforFGSet(int j,char *b,float *f);

View file

@ -12,7 +12,7 @@
struct SFG_Font {
char* Name; /* The source font name */
const char* Name; /* The source font name */
int Quantity; /* Number of chars in font */
int Height; /* Height of the characters */
const GLubyte** Characters; /* The characters mapping */