mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Fix possible memleak in CDatabaseWriter
* CApplication network methods cleanup
This commit is contained in:
@@ -44,18 +44,17 @@ namespace BlackMisc
|
||||
return this->findFirstByOrDefault(&CAirport::getIcao, icao, ifNotFound);
|
||||
}
|
||||
|
||||
CAirportList CAirportList::fromDatabaseJson(const QJsonArray &json)
|
||||
void CAirportList::convertFromDatabaseJson(const QJsonArray &json)
|
||||
{
|
||||
CAirportList airports;
|
||||
clear();
|
||||
|
||||
for (const QJsonValue& value: json)
|
||||
{
|
||||
QJsonObject object = value.toObject();
|
||||
CAirport airport;
|
||||
airport.fromDatabaseJson(object);
|
||||
airports.push_back(airport);
|
||||
airport.convertFromDatabaseJson(object);
|
||||
push_back(airport);
|
||||
}
|
||||
|
||||
return airports;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user