]> git.mxchange.org Git - flightgear.git/commitdiff
cosmetics: make the reason for the cast obvious. (Now that almost all of
authormfranz <mfranz>
Mon, 7 May 2007 14:06:05 +0000 (14:06 +0000)
committermfranz <mfranz>
Mon, 7 May 2007 14:06:05 +0000 (14:06 +0000)
fgfs has to be recompiled (because of a patch to simgear/props/props.hxx)
this is the right time to commit this completely unimportant patch. :-)

src/Main/fg_props.hxx

index b20f102922b88488d2383351e3f9c8b1c2665750..4025b185dfc424a2298ddeacdd879ed031d6f619 100644 (file)
@@ -538,7 +538,7 @@ public:
         if (node->getType() != SGPropertyNode::STRING)
             return;
 
-        char *s = (char *)node->getStringValue();
+        char *s = const_cast<char *>(node->getStringValue());
         for (; *s; s++)
             *s = toupper(*s);
     }