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

Function writeString

launcher/Json.cpp:90–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void writeString(QJsonObject &to, const QString &key, const QString &value)
91{
92 if (!value.isEmpty())
93 {
94 to.insert(key, value);
95 }
96}
97
98void writeStringList(QJsonObject &to, const QString &key, const QStringList &values)
99{

Callers 2

versionFileToJsonMethod · 0.85

Calls 2

isEmptyMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected