Commit 615f35f1 authored by Friedemann Kleint's avatar Friedemann Kleint

Gerrit: Fix compilation with MSVC2010, Qt 5.

Change-Id: I8fe5047d99bcac8e81053f750d5ce038773a0ca2
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 32fc2219
......@@ -537,14 +537,14 @@ static QList<GerritChangePtr> parseOutput(const QSharedPointer<GerritParameters>
const int ac = approvalsJ.size();
for (int a = 0; a < ac; ++a) {
const QJsonObject ao = approvalsJ.at(a).toObject();
GerritApproval a;
GerritApproval approval;
const QJsonObject approverO = ao.value(approvalsByKey).toObject();
a.reviewer = approverO.value(ownerNameKey).toString();
a.email = approverO.value(ownerEmailKey).toString();
a.approval = ao.value(approvalsValueKey).toString().toInt();
a.type = ao.value(approvalsTypeKey).toString();
a.description = ao.value(approvalsDescriptionKey).toString();
change->currentPatchSet.approvals.push_back(a);
approval.reviewer = approverO.value(ownerNameKey).toString();
approval.email = approverO.value(ownerEmailKey).toString();
approval.approval = ao.value(approvalsValueKey).toString().toInt();
approval.type = ao.value(approvalsTypeKey).toString();
approval.description = ao.value(approvalsDescriptionKey).toString();
change->currentPatchSet.approvals.push_back(approval);
}
qStableSort(change->currentPatchSet.approvals.begin(),
change->currentPatchSet.approvals.end(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment