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
* \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;
}