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:
Mathew Sutcliffe
2013-08-19 14:28:55 +01:00
parent 21ca361bc1
commit f9f35f27d5
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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