| 648 | } |
| 649 | |
| 650 | static std::vector<std::string> LoadProfiles(const QJsonDocument& doc) { |
| 651 | assert(!doc.isNull() && !doc.isEmpty()); |
| 652 | |
| 653 | const QJsonObject& json_root_object = doc.object(); |
| 654 | if (json_root_object.value("profiles") == QJsonValue::Undefined) { |
| 655 | return std::vector<std::string>(); |
| 656 | } |
| 657 | |
| 658 | return ConvertString(ReadObject(json_root_object, "profiles").keys()); |
| 659 | } |
| 660 | |
| 661 | std::vector<std::string> CollectProfileNamesFromFile(const Path& profile_path) { |
| 662 | if (profile_path.Empty()) { |
no test coverage detected