mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fix clang-tidy and clazy warnings
This commit is contained in:
@@ -651,7 +651,7 @@ namespace BlackMisc
|
||||
CAirlineIcaoCode CAircraftModelList::getAirlineWithMaxCount() const
|
||||
{
|
||||
const QMap<CAirlineIcaoCode, int> ac = this->countPerAirlineIcao();
|
||||
if (ac.size() < 1) { return {}; }
|
||||
if (ac.isEmpty()) { return {}; }
|
||||
if (ac.size() == 1) { return ac.firstKey(); }
|
||||
const QList<int> values = ac.values();
|
||||
const int max = *std::max_element(values.begin(), values.end());
|
||||
@@ -1641,7 +1641,7 @@ namespace BlackMisc
|
||||
return msgs;
|
||||
}
|
||||
|
||||
CStatusMessageList CAircraftModelList::validateUncFiles(const QSet<QString> uncFiles) const
|
||||
CStatusMessageList CAircraftModelList::validateUncFiles(const QSet<QString> &uncFiles) const
|
||||
{
|
||||
// check if UNC paths can be reached
|
||||
CStatusMessageList msgs;
|
||||
|
||||
Reference in New Issue
Block a user