mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Return a default-constructed QString instead of implicitly converting an empty string literal.
This commit is contained in:
@@ -381,14 +381,14 @@ namespace BlackMisc
|
||||
|
||||
QString CAircraftModelList::findModelIconPathByModelString(const QString &modelString) const
|
||||
{
|
||||
if (modelString.isEmpty()) { return ""; }
|
||||
if (modelString.isEmpty()) { return {}; }
|
||||
const CAircraftModel m(findFirstByModelStringOrDefault(modelString, Qt::CaseInsensitive));
|
||||
return m.getIconPath();
|
||||
}
|
||||
|
||||
QString CAircraftModelList::findModelIconPathByCallsign(const CCallsign &callsign) const
|
||||
{
|
||||
if (callsign.isEmpty()) { return ""; }
|
||||
if (callsign.isEmpty()) { return {}; }
|
||||
const CAircraftModel m(findFirstByCallsignOrDefault(callsign));
|
||||
return m.getIconPath();
|
||||
}
|
||||
@@ -1175,7 +1175,7 @@ namespace BlackMisc
|
||||
|
||||
QString CAircraftModelList::asHtmlSummary() const
|
||||
{
|
||||
if (this->isEmpty()) { return ""; }
|
||||
if (this->isEmpty()) { return {}; }
|
||||
QString html;
|
||||
for (const CAircraftModel &model : *this)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user