]> git.mxchange.org Git - flightgear.git/commitdiff
Casaba Halász: Fix some const warnings.
authorfrohlich <frohlich>
Tue, 3 Mar 2009 07:58:20 +0000 (07:58 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 5 Mar 2009 09:52:03 +0000 (10:52 +0100)
Modified Files:
src/FDM/YASim/Rotor.cpp src/FDM/YASim/Rotor.hpp
src/GUI/fonts.cxx

src/FDM/YASim/Rotor.cpp
src/FDM/YASim/Rotor.hpp
src/GUI/fonts.cxx

index 96be4cfffbd7d5f33ce2744f3b1d8982cb72fd31..5eb2c33fcc62d08808cd38f30172a44aa2ba2f07 100644 (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)
index fcf3543910c783549a928f14fde0605aa3668d85..43ea60e04474b593837f807a9a08e843476c5d36 100644 (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);
index 8d1f3bcbd9b8e6a9a2128456269ef4d99a9682f0..2d67907b70e76d33dcd043e8aeb7011deafe787d 100644 (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           */