mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +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
@@ -29,7 +29,8 @@ namespace BlackMisc
|
||||
if (! json.contains("MetaData")) { throw CJsonException("Missing 'MetaData'"); }
|
||||
|
||||
// json data is already validated by CPluginManagerWeatherData
|
||||
CJsonScope scope("MetaData");
|
||||
CJsonScope scope("MetaData"); // for stack trace
|
||||
Q_UNUSED(scope);
|
||||
CValueObject::convertFromJson(json["MetaData"].toObject());
|
||||
m_valid = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user