| 338 | } |
| 339 | |
| 340 | bool cmQtAutoGenerator::InfoT::GetArray(std::string const& key, |
| 341 | std::vector<std::string>& list, |
| 342 | bool required) const |
| 343 | { |
| 344 | Json::Value const& jval = this->Json_[key]; |
| 345 | if (!jval.isArray()) { |
| 346 | if (!jval.isNull() || required) { |
| 347 | return this->LogError(cmStrCat(key, " is not an array.")); |
| 348 | } |
| 349 | } |
| 350 | return GetJsonArray(list, jval) || !required; |
| 351 | } |
| 352 | |
| 353 | bool cmQtAutoGenerator::InfoT::GetArray(std::string const& key, |
| 354 | std::unordered_set<std::string>& list, |
no test coverage detected