mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Some fixes and formatting
* CTime::switchUnit(CTimeUnit::hms()); * Coordinate canHandleIndex protected * copyright
This commit is contained in:
committed by
Mathew Sutcliffe
parent
edf8191969
commit
4fcf9efab7
@@ -95,6 +95,12 @@ namespace BlackMisc
|
||||
return Geo::calculateBearing((*this), otherCoordinate);
|
||||
}
|
||||
|
||||
bool ICoordinateGeodetic::canHandleIndex(const CPropertyIndex &index)
|
||||
{
|
||||
int i = index.frontCasted<int>();
|
||||
return (i >= static_cast<int>(IndexLatitude)) && (i <= static_cast<int>(IndexGeodeticHeightAsString));
|
||||
}
|
||||
|
||||
CVariant ICoordinateGeodetic::propertyByIndex(const BlackMisc::CPropertyIndex &index) const
|
||||
{
|
||||
if (!index.isMyself())
|
||||
|
||||
Reference in New Issue
Block a user