| 147 | } |
| 148 | |
| 149 | void SaveStringArray(QJsonObject& json_object, const char* key, const std::vector<std::string>& tokens) { |
| 150 | QJsonArray json_platforms; |
| 151 | for (std::size_t i = 0, n = tokens.size(); i < n; ++i) { |
| 152 | json_platforms.append(tokens[i].c_str()); |
| 153 | } |
| 154 | json_object.insert(key, json_platforms); |
| 155 | } |