mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-09 03:48:56 -04:00
avoid translating back to stf string without reason
This commit is contained in:
parent
b35cffb347
commit
1f094b9803
@ -91,9 +91,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Q_UNUSED(readVarInt(resp)); // json length
|
Q_UNUSED(readVarInt(resp)); // json length
|
||||||
std::string json = resp.toStdString();
|
|
||||||
|
|
||||||
QJsonDocument doc = QJsonDocument::fromJson(QByteArray::fromStdString(json));
|
// 'resp' should now be the JSON string
|
||||||
|
QJsonDocument doc = QJsonDocument::fromJson(resp);
|
||||||
return doc.object();
|
return doc.object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user