mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -370,7 +370,7 @@ namespace BlackGui
|
||||
if (v.isEmpty() || v.endsWith(defaultIcao(), Qt::CaseInsensitive))
|
||||
{
|
||||
messages.push_back(CStatusMessage(this).validationError("Missing '%1'") << ui->lbl_DestinationAirport->text());
|
||||
flightPlan.setDestinationAirportIcao(QString(""));
|
||||
flightPlan.setDestinationAirportIcao(QString());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -411,7 +411,7 @@ namespace BlackGui
|
||||
{
|
||||
messages.push_back(CStatusMessage(this).validationInfo("Missing %1") << ui->lbl_AlternateAirport->text());
|
||||
}
|
||||
flightPlan.setAlternateAirportIcao(QString(""));
|
||||
flightPlan.setAlternateAirportIcao(QString());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user