mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
in geodetic coordinates, latitude(), longitude(), and height() return by reference to const instead of by value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user