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

Function writeStringList

launcher/Json.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void writeStringList(QJsonObject &to, const QString &key, const QStringList &values)
99{
100 if (!values.isEmpty())
101 {
102 QJsonArray array;
103 for(auto value: values)
104 {
105 array.append(value);
106 }
107 to.insert(key, array);
108 }
109}
110
111template<>
112QJsonValue toJson<QUrl>(const QUrl &url)

Callers 1

versionFileToJsonMethod · 0.85

Calls 3

isEmptyMethod · 0.80
appendMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected