mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Based on discussion around T107 and slack
* Use CJsonScope scope("MetaData") for stacktrace
* added Q_UNUSED(scope) to avoid QtC warnings
This commit is contained in:
committed by
Mathew Sutcliffe
parent
c4db854fad
commit
94c9886c35
@@ -749,14 +749,17 @@ namespace BlackMisc
|
||||
if (distributors.isUndefined()) { throw CJsonException("Missing 'distributors'"); }
|
||||
{
|
||||
CJsonScope scope("aircraftIcaos");
|
||||
Q_UNUSED(scope);
|
||||
helper.getTable<CAircraftIcaoCode>().convertFromJson(aircraftIcaos.toObject());
|
||||
}
|
||||
{
|
||||
CJsonScope scope("liveries");
|
||||
Q_UNUSED(scope);
|
||||
helper.getTable<CLivery>().convertFromJson(liveries.toObject());
|
||||
}
|
||||
{
|
||||
CJsonScope scope("distributors");
|
||||
Q_UNUSED(scope);
|
||||
helper.getTable<CDistributor>().convertFromJson(distributors.toObject());
|
||||
}
|
||||
|
||||
@@ -764,6 +767,7 @@ namespace BlackMisc
|
||||
for (auto i = array.begin(); i != array.end(); ++i)
|
||||
{
|
||||
CJsonScope scope("containerbase", index++);
|
||||
Q_UNUSED(scope);
|
||||
CAircraftModel value;
|
||||
value.convertFromMemoizedJson(i->toObject(), helper);
|
||||
insert(value);
|
||||
|
||||
Reference in New Issue
Block a user