mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 21:45:34 +08:00
make construct-from-CAngle constructors explicit in CLatitude and CLongitude to make it harder to convert between incompatible CAngle subclasses
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
||||
* \brief Constructor
|
||||
* \param angle
|
||||
*/
|
||||
CLatitude(const BlackMisc::PhysicalQuantities::CAngle &angle) : CEarthAngle(angle) {}
|
||||
explicit CLatitude(const BlackMisc::PhysicalQuantities::CAngle &angle) : CEarthAngle(angle) {}
|
||||
|
||||
/*!
|
||||
* \brief Init by double value
|
||||
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
* \brief Constructor
|
||||
* \param angle
|
||||
*/
|
||||
CLongitude(const BlackMisc::PhysicalQuantities::CAngle &angle) : CEarthAngle(angle) {}
|
||||
explicit CLongitude(const BlackMisc::PhysicalQuantities::CAngle &angle) : CEarthAngle(angle) {}
|
||||
|
||||
/*!
|
||||
* \brief Init by double value
|
||||
|
||||
Reference in New Issue
Block a user