refs #800 Fixed unreachable code.

This commit is contained in:
Mathew Sutcliffe
2016-11-10 00:46:15 +00:00
committed by Klaus Basan
parent ced70c4612
commit 53ceaca47c

View File

@@ -286,9 +286,10 @@ namespace BlackCore
{ {
{ {
QWriteLocker l(&m_lockAircraft); QWriteLocker l(&m_lockAircraft);
return this->m_ownAircraft.setIcaoCodes(aircraftIcaoCode, airlineIcaoCode); if (!this->m_ownAircraft.setIcaoCodes(aircraftIcaoCode, airlineIcaoCode)) { return false; }
} }
emit this->changedAircraftIcaoCodes(aircraftIcaoCode, airlineIcaoCode); emit this->changedAircraftIcaoCodes(aircraftIcaoCode, airlineIcaoCode);
return true;
} }
bool CContextOwnAircraft::updateSelcal(const CSelcal &selcal, const CIdentifier &originator) bool CContextOwnAircraft::updateSelcal(const CSelcal &selcal, const CIdentifier &originator)