MCPcopy Create free account
hub / github.com/MultiMC/Launcher / requireArray

Function requireArray

launcher/Json.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 return doc.object();
80}
81QJsonArray requireArray(const QJsonDocument &doc, const QString &what)
82{
83 if (!doc.isArray())
84 {
85 throw JsonException(what + " is not an array");
86 }
87 return doc.array();
88}
89
90void writeString(QJsonObject &to, const QString &key, const QString &value)
91{

Callers 10

requireIsArrayOfFunction · 0.85
loadIndexedPackMethod · 0.85
loadVersionModFunction · 0.85
loadVersionMethod · 0.85
fileListSucceededMethod · 0.85
searchRequestFinishedMethod · 0.85
searchRequestFinishedMethod · 0.85
parseVersionsIntoFunction · 0.85
reprocessCommitsFunction · 0.85
parseRequiresFunction · 0.85

Calls 1

JsonExceptionClass · 0.85

Tested by

no test coverage detected