From a8036f1ce55d22dc403f2ec357ea1db37f203c98 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Sun, 18 Aug 2013 23:15:33 +0100 Subject: [PATCH] in geodetic coordinates, latitude(), longitude(), and height() return by reference to const instead of by value --- src/blackmisc/coordinategeodetic.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/blackmisc/coordinategeodetic.h b/src/blackmisc/coordinategeodetic.h index 7f7ef9681..6883db106 100644 --- a/src/blackmisc/coordinategeodetic.h +++ b/src/blackmisc/coordinategeodetic.h @@ -25,13 +25,13 @@ class ICoordinateGeodetic * \brief Latitude * \return */ - virtual CLatitude latitude() const = 0; + virtual const CLatitude &latitude() const = 0; /*! * \brief Longitude * \return */ - virtual CLongitude longitude() const = 0; + virtual const CLongitude &longitude() const = 0; }; /*! @@ -98,7 +98,7 @@ public: * \brief Latitude * \return */ - CLatitude latitude() const + const CLatitude &latitude() const { return this->m_latitude; } @@ -107,7 +107,7 @@ public: * \brief Longitude * \return */ - CLongitude longitude() const + const CLongitude &longitude() const { return this->m_longitude; } @@ -116,7 +116,7 @@ public: * \brief Height * \return */ - BlackMisc::PhysicalQuantities::CLength height() const + const BlackMisc::PhysicalQuantities::CLength &height() const { return this->m_height; }