mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Several gcc and clang fixes
This superseeds also f1199793 by a cleaner workaround.
This commit is contained in:
committed by
Roland Winklmeier
parent
70e42c0bee
commit
ab98009996
@@ -33,7 +33,7 @@ namespace BlackGui
|
||||
|
||||
BlackMisc::Aviation::CCallsign CRemoteAircraftSelector::getSelectedCallsign() const
|
||||
{
|
||||
const CCallsign empty;
|
||||
const CCallsign empty {};
|
||||
int index = ui->cb_RemoteAircraftSelector->currentIndex();
|
||||
if (index < 0 || index > this->m_aircraft.size()) { return empty; }
|
||||
return m_aircraft[index].getCallsign();
|
||||
|
||||
Reference in New Issue
Block a user