summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-17 05:30:09 -0400
committerGravatar Lioncash2018-09-17 05:30:11 -0400
commit51b561907962906ce916708feba8226665d33d7f (patch)
treed951733a8613378448b65cc4cb1275b5aeeb6eaf /src
parentMerge pull request #1308 from valentinvanelslande/ipc (diff)
downloadyuzu-51b561907962906ce916708feba8226665d33d7f.tar.gz
yuzu-51b561907962906ce916708feba8226665d33d7f.tar.xz
yuzu-51b561907962906ce916708feba8226665d33d7f.zip
game_list_p: Take map iterator contents by const reference
We don't need to copy the whole struct in this instance, we can just utilize a reference instead.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/game_list_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index f22e422e5..094437090 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -128,7 +128,7 @@ public:
128 LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString()); 128 LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString());
129 return; 129 return;
130 } 130 }
131 CompatStatus status = iterator->second; 131 const CompatStatus& status = iterator->second;
132 setData(compatiblity, CompatNumberRole); 132 setData(compatiblity, CompatNumberRole);
133 setText(QObject::tr(status.text)); 133 setText(QObject::tr(status.text));
134 setToolTip(QObject::tr(status.tooltip)); 134 setToolTip(QObject::tr(status.tooltip));