MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / writeStringList

Function writeStringList

launcher/Json.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void writeStringList(QJsonObject& to, const QString& key, const QStringList& values)
127{
128 if (!values.isEmpty()) {
129 QJsonArray array;
130 for (auto value : values) {
131 array.append(value);
132 }
133 to.insert(key, array);
134 }
135}
136
137template <>
138QJsonValue toJson<QUrl>(const QUrl& url)

Callers 4

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

Calls 3

appendMethod · 0.80
insertMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected