refs #815 Mark with \todo the remaining places where CJsonException needs to be caught.

This commit is contained in:
Mathew Sutcliffe
2016-12-21 02:28:19 +00:00
parent 51c3ae8c25
commit bda0f42c60
5 changed files with 11 additions and 11 deletions

View File

@@ -387,7 +387,7 @@ namespace BlackCore
if (!liveriesJson.isEmpty())
{
CLiveryList liveries;
liveries.convertFromJson(liveriesJson);
liveries.convertFromJson(liveriesJson); //! \todo catch CJsonException or use convertFromJsonNoThrow
const int c = liveries.size();
this->m_liveryCache.set(liveries);
@@ -402,7 +402,7 @@ namespace BlackCore
if (!modelsJson.isEmpty())
{
CAircraftModelList models;
models.convertFromJson(Json::jsonObjectFromString(modelsJson));
models.convertFromJson(Json::jsonObjectFromString(modelsJson)); //! \todo catch CJsonException or use convertFromJsonNoThrow
const int c = models.size();
this->m_modelCache.set(models);
@@ -417,7 +417,7 @@ namespace BlackCore
if (!distributorsJson.isEmpty())
{
CDistributorList distributors;
distributors.convertFromJson(Json::jsonObjectFromString(distributorsJson));
distributors.convertFromJson(Json::jsonObjectFromString(distributorsJson)); //! \todo catch CJsonException or use convertFromJsonNoThrow
const int c = distributors.size();
this->m_distributorCache.set(distributors);