mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #800 Fixed some declaration shadows variable in outer scope warnings.
This commit is contained in:
committed by
Klaus Basan
parent
5791de6860
commit
6f972035ab
@@ -103,13 +103,13 @@ namespace BlackGui
|
||||
return;
|
||||
}
|
||||
QJsonParseError jsonError;
|
||||
QJsonDocument json(QJsonDocument::fromJson(jsonParts.toUtf8(), &jsonError));
|
||||
QJsonDocument jsonDoc(QJsonDocument::fromJson(jsonParts.toUtf8(), &jsonError));
|
||||
if (jsonError.error != QJsonParseError::NoError)
|
||||
{
|
||||
CLogMessage(this).validationError("Parse error: %1") << jsonError.errorString();
|
||||
return;
|
||||
}
|
||||
parts.convertFromJson(json.object());
|
||||
parts.convertFromJson(jsonDoc.object());
|
||||
partsToGui(parts);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user