in geodetic coordinates, latitude(), longitude(), and height() return by reference to const instead of by value

This commit is contained in:
Mathew Sutcliffe
2013-08-18 23:15:33 +01:00
parent c8114c2d85
commit a8036f1ce5

View File

@@ -25,13 +25,13 @@ class ICoordinateGeodetic
* \brief Latitude * \brief Latitude
* \return * \return
*/ */
virtual CLatitude latitude() const = 0; virtual const CLatitude &latitude() const = 0;
/*! /*!
* \brief Longitude * \brief Longitude
* \return * \return
*/ */
virtual CLongitude longitude() const = 0; virtual const CLongitude &longitude() const = 0;
}; };
/*! /*!
@@ -98,7 +98,7 @@ public:
* \brief Latitude * \brief Latitude
* \return * \return
*/ */
CLatitude latitude() const const CLatitude &latitude() const
{ {
return this->m_latitude; return this->m_latitude;
} }
@@ -107,7 +107,7 @@ public:
* \brief Longitude * \brief Longitude
* \return * \return
*/ */
CLongitude longitude() const const CLongitude &longitude() const
{ {
return this->m_longitude; return this->m_longitude;
} }
@@ -116,7 +116,7 @@ public:
* \brief Height * \brief Height
* \return * \return
*/ */
BlackMisc::PhysicalQuantities::CLength height() const const BlackMisc::PhysicalQuantities::CLength &height() const
{ {
return this->m_height; return this->m_height;
} }