summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-12 04:34:07 +0200
committerLioncash <mathew1800@gmail.com>2018-09-12 04:34:09 +0200
commit0e61e8362f1e8c082eb40f6cc7200e091d0452e8 (patch)
treebeaa38b68909b08017b0211db204dce60fc838c3 /src
parentgame_list: Use QJsonValueRef() within LoadCompatibilityList() (diff)
downloadyuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar
yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar.gz
yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar.bz2
yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar.lz
yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar.xz
yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.tar.zst
yuzu-0e61e8362f1e8c082eb40f6cc7200e091d0452e8.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/game_list.cpp6
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() {
QString directory = game["directory"].toString();
QJsonArray ids = game["releases"].toArray();
- for (const QJsonValueRef& value : ids) {
- QJsonObject object = value.toObject();
- QString id = object["id"].toString();
+ for (const QJsonValueRef& id_ref : ids) {
+ QJsonObject id_object = id_ref.toObject();
+ QString id = id_object["id"].toString();
compatibility_list.emplace(
id.toUpper().toStdString(),
std::make_pair(QString::number(compatibility), directory));