MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / writeStringList

Function writeStringList

launcher/Json.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void writeStringList(QJsonObject &to, const QString &key, const QStringList &values)
120{
121 if (!values.isEmpty())
122 {
123 QJsonArray array;
124 for(auto value: values)
125 {
126 array.append(value);
127 }
128 to.insert(key, array);
129 }
130}
131
132template<>
133QJsonValue toJson<QUrl>(const QUrl &url)

Callers 4

currentVersionsMethod · 0.85
latestVersionMethod · 0.85
latestVersionsMethod · 0.85
versionFileToJsonMethod · 0.85

Calls 3

isEmptyMethod · 0.80
appendMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected