mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
Fixed "synchronized" typos
This commit is contained in:
@@ -190,7 +190,7 @@ namespace BlackMisc
|
||||
this->m_frequency.setUnit(CFrequencyUnit::MHz());
|
||||
}
|
||||
|
||||
void CAtcStation::syncronizeControllerData(CAtcStation &otherStation)
|
||||
void CAtcStation::synchronizeControllerData(CAtcStation &otherStation)
|
||||
{
|
||||
if (this->m_controller == otherStation.getController()) { return; }
|
||||
CUser otherController = otherStation.getController();
|
||||
@@ -198,7 +198,7 @@ namespace BlackMisc
|
||||
otherStation.setController(otherController);
|
||||
}
|
||||
|
||||
void CAtcStation::syncronizeWithBookedStation(CAtcStation &bookedStation)
|
||||
void CAtcStation::synchronizeWithBookedStation(CAtcStation &bookedStation)
|
||||
{
|
||||
if (bookedStation.getCallsign() != this->getCallsign()) { return; }
|
||||
|
||||
@@ -261,7 +261,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
// both ways
|
||||
this->syncronizeControllerData(bookedStation);
|
||||
this->synchronizeControllerData(bookedStation);
|
||||
if (this->hasValidRelativeDistance())
|
||||
{
|
||||
bookedStation.setRelativeDistance(this->getRelativeDistance());
|
||||
|
||||
@@ -143,14 +143,14 @@ namespace BlackMisc
|
||||
//! Set position
|
||||
void setPosition(const BlackMisc::Geo::CCoordinateGeodetic &position) { this->m_position = position; }
|
||||
|
||||
//! Syncronize controller data
|
||||
//! Synchronize controller data
|
||||
//! Updates two stations (normally a booked and online ATC station) with complementary data
|
||||
void syncronizeControllerData(CAtcStation &otherStation);
|
||||
void synchronizeControllerData(CAtcStation &otherStation);
|
||||
|
||||
//! Syncronize station data
|
||||
//! Synchronize station data
|
||||
//! Updates the two stations (a booked and online ATC station) with complementary data
|
||||
//! \pre this object is the online station, the passed station the booked station
|
||||
void syncronizeWithBookedStation(CAtcStation &bookedStation);
|
||||
void synchronizeWithBookedStation(CAtcStation &bookedStation);
|
||||
|
||||
//! Get the radius of the controller's area of visibility.
|
||||
const BlackMisc::PhysicalQuantities::CLength &getRange() const { return m_range; }
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace BlackMisc
|
||||
return this->findBy(Predicates::MemberValid(&CAtcStation::getController)).transform(Predicates::MemberTransform(&CAtcStation::getController));
|
||||
}
|
||||
|
||||
int CAtcStationList::syncronizeWithBookedStation(CAtcStation &bookedAtcStation)
|
||||
int CAtcStationList::synchronizeWithBookedStation(CAtcStation &bookedAtcStation)
|
||||
{
|
||||
int c = 0;
|
||||
bookedAtcStation.setOnline(false); // reset
|
||||
@@ -66,7 +66,7 @@ namespace BlackMisc
|
||||
for (auto i = this->begin(); i != this->end(); ++i)
|
||||
{
|
||||
if (i->getCallsign() != bookedAtcStation.getCallsign()) { continue; }
|
||||
i->syncronizeWithBookedStation(bookedAtcStation);
|
||||
i->synchronizeWithBookedStation(bookedAtcStation);
|
||||
c++;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,10 +59,10 @@ namespace BlackMisc
|
||||
//! All controllers (with valid data)
|
||||
BlackMisc::Network::CUserList getControllers() const;
|
||||
|
||||
//! Syncronize with ATC station representing booking information.
|
||||
//! Synchronize with ATC station representing booking information.
|
||||
//! Both sides (booking, online station) will be updated.
|
||||
//! \pre Can be used only if the stored data in this list are online ATC stations
|
||||
int syncronizeWithBookedStation(CAtcStation &bookedAtcStation);
|
||||
int synchronizeWithBookedStation(CAtcStation &bookedAtcStation);
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
Reference in New Issue
Block a user