From: mfranz Date: Sat, 28 Jan 2006 22:41:20 +0000 (+0000) Subject: the const-ness wasn't such a good idea :-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=267e558bd2ff5c1f92103104d6795b8268d9780e;p=flightgear.git the const-ness wasn't such a good idea :-) --- diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 64635c237..003362ace 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -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 const SGPropertyNode_ptr lon + static SGPropertyNode_ptr lon = fgGetNode("/sim/input/click/longitude-deg", true); - static const SGPropertyNode_ptr lat + static SGPropertyNode_ptr lat = fgGetNode("/sim/input/click/latitude-deg", true); - static const SGPropertyNode_ptr elev_m + static SGPropertyNode_ptr elev_m = fgGetNode("/sim/input/click/elevation-m", true); - static const SGPropertyNode_ptr elev_ft + static SGPropertyNode_ptr elev_ft = fgGetNode("/sim/input/click/elevation-ft", true); lon->setDoubleValue(geod.lon() * SGD_RADIANS_TO_DEGREES);