]> git.mxchange.org Git - flightgear.git/commitdiff
make it const
authormfranz <mfranz>
Fri, 27 Jan 2006 22:26:47 +0000 (22:26 +0000)
committermfranz <mfranz>
Fri, 27 Jan 2006 22:26:47 +0000 (22:26 +0000)
src/Input/input.cxx

index 003362ace2c95013e12e23fc971684ff2dc8eff8..64635c23783e2b0e646d3b3b31b7050be8319761 100644 (file)
@@ -324,13 +324,13 @@ FGInput::doMouseClick (int b, int updown, int x, int y)
 
         Point3D geod = sgCartToGeod(Point3D(hit[0], hit[1], hit[2]));
 
-        static SGPropertyNode_ptr lon
+        static const SGPropertyNode_ptr lon
                 = fgGetNode("/sim/input/click/longitude-deg", true);
-        static SGPropertyNode_ptr lat
+        static const SGPropertyNode_ptr lat
                 = fgGetNode("/sim/input/click/latitude-deg", true);
-        static SGPropertyNode_ptr elev_m
+        static const SGPropertyNode_ptr elev_m
                 = fgGetNode("/sim/input/click/elevation-m", true);
-        static SGPropertyNode_ptr elev_ft
+        static const SGPropertyNode_ptr elev_ft
                 = fgGetNode("/sim/input/click/elevation-ft", true);
 
         lon->setDoubleValue(geod.lon() * SGD_RADIANS_TO_DEGREES);