From: frohlich Date: Tue, 17 Mar 2009 12:23:15 +0000 (+0000) Subject: Add const accessors. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=471b9f02eca87b1d7722a0cdf9cf7bbc9b05549c;p=simgear.git Add const accessors. Modified Files: simgear/ephemeris/ephemeris.hxx --- 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(); } };