From 471b9f02eca87b1d7722a0cdf9cf7bbc9b05549c Mon Sep 17 00:00:00 2001 From: frohlich Date: Tue, 17 Mar 2009 12:23:15 +0000 Subject: [PATCH] Add const accessors. Modified Files: simgear/ephemeris/ephemeris.hxx --- simgear/ephemeris/ephemeris.hxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simgear/ephemeris/ephemeris.hxx b/simgear/ephemeris/ephemeris.hxx index e5579bdb..398eb3ef 100644 --- a/simgear/ephemeris/ephemeris.hxx +++ b/simgear/ephemeris/ephemeris.hxx @@ -158,6 +158,7 @@ public: * @return planets array */ inline SGVec3d *getPlanets() { return planets; } + inline const SGVec3d *getPlanets() const { return planets; } /** @return the numbers of defined stars. */ inline int getNumStars() const { return stars->getNumStars(); } @@ -170,6 +171,7 @@ public: * @returns star array */ inline SGVec3d *getStars() { return stars->getStars(); } + inline const SGVec3d *getStars() const { return stars->getStars(); } }; -- 2.39.5