diff options
| author | 2018-09-11 22:34:07 -0400 | |
|---|---|---|
| committer | 2018-09-11 22:34:09 -0400 | |
| commit | 0e61e8362f1e8c082eb40f6cc7200e091d0452e8 (patch) | |
| tree | beaa38b68909b08017b0211db204dce60fc838c3 /src | |
| parent | game_list: Use QJsonValueRef() within LoadCompatibilityList() (diff) | |
| download | yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar.gz yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar.xz yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.zip | |
game_list: Resolve variable shadowing within LoadCompatibilityList()
"value" is already a used variable name within the outermost ranged-for
loop, so this variable was shadowing the outer one. This isn't a bug,
but it will get rid of a -Wshadow warning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 9dfd6a708..3b3b551bb 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -374,9 +374,9 @@ void GameList::LoadCompatibilityList() { | |||
| 374 | QString directory = game["directory"].toString(); | 374 | QString directory = game["directory"].toString(); |
| 375 | QJsonArray ids = game["releases"].toArray(); | 375 | QJsonArray ids = game["releases"].toArray(); |
| 376 | 376 | ||
| 377 | for (const QJsonValueRef& value : ids) { | 377 | for (const QJsonValueRef& id_ref : ids) { |
| 378 | QJsonObject object = value.toObject(); | 378 | QJsonObject id_object = id_ref.toObject(); |
| 379 | QString id = object["id"].toString(); | 379 | QString id = id_object["id"].toString(); |
| 380 | compatibility_list.emplace( | 380 | compatibility_list.emplace( |
| 381 | id.toUpper().toStdString(), | 381 | id.toUpper().toStdString(), |
| 382 | std::make_pair(QString::number(compatibility), directory)); | 382 | std::make_pair(QString::number(compatibility), directory)); |