diff options
| author | 2019-01-12 02:01:13 -0500 | |
|---|---|---|
| committer | 2019-01-12 02:01:13 -0500 | |
| commit | bc879ae88056eef55709f0b683e11a4b8b70ffd2 (patch) | |
| tree | 80fd501886b758ed7a8a3fa8084fb9fcfbcf5b4d /src | |
| parent | Merge pull request #1959 from DarkLordZach/custom-rtc (diff) | |
| parent | game_list: Remove a reference of a reference (diff) | |
| download | yuzu-bc879ae88056eef55709f0b683e11a4b8b70ffd2.tar.gz yuzu-bc879ae88056eef55709f0b683e11a4b8b70ffd2.tar.xz yuzu-bc879ae88056eef55709f0b683e11a4b8b70ffd2.zip | |
Merge pull request #1848 from FreddyFunk/QJsonArray
game_list: Remove a reference of a reference
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 8e9524fd6..c0e3c5fa9 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -376,7 +376,7 @@ void GameList::LoadCompatibilityList() { | |||
| 376 | QJsonDocument json = QJsonDocument::fromJson(string_content.toUtf8()); | 376 | QJsonDocument json = QJsonDocument::fromJson(string_content.toUtf8()); |
| 377 | QJsonArray arr = json.array(); | 377 | QJsonArray arr = json.array(); |
| 378 | 378 | ||
| 379 | for (const QJsonValueRef& value : arr) { | 379 | for (const QJsonValueRef value : arr) { |
| 380 | QJsonObject game = value.toObject(); | 380 | QJsonObject game = value.toObject(); |
| 381 | 381 | ||
| 382 | if (game.contains("compatibility") && game["compatibility"].isDouble()) { | 382 | if (game.contains("compatibility") && game["compatibility"].isDouble()) { |
| @@ -384,7 +384,7 @@ void GameList::LoadCompatibilityList() { | |||
| 384 | QString directory = game["directory"].toString(); | 384 | QString directory = game["directory"].toString(); |
| 385 | QJsonArray ids = game["releases"].toArray(); | 385 | QJsonArray ids = game["releases"].toArray(); |
| 386 | 386 | ||
| 387 | for (const QJsonValueRef& id_ref : ids) { | 387 | for (const QJsonValueRef id_ref : ids) { |
| 388 | QJsonObject id_object = id_ref.toObject(); | 388 | QJsonObject id_object = id_ref.toObject(); |
| 389 | QString id = id_object["id"].toString(); | 389 | QString id = id_object["id"].toString(); |
| 390 | compatibility_list.emplace( | 390 | compatibility_list.emplace( |