mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-08 19:41:30 -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
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user