mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +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
|
* \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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user