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:
Klaus Basan
2017-07-14 15:13:57 +02:00
committed by Mathew Sutcliffe
parent c4db854fad
commit 94c9886c35
8 changed files with 21 additions and 3 deletions

View File

@@ -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);