From 6de1f56f2c42e54539cb78170b6ecf509dfab9c1 Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 27 Jan 2006 22:26:47 +0000 Subject: [PATCH] make it const --- src/Input/input.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 003362ace..64635c237 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 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);