summaryrefslogtreecommitdiff
path: root/src/yuzu/game_list_p.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-17 05:30:09 -0400
committerLioncash <mathew1800@gmail.com>2018-09-17 05:30:11 -0400
commit51b561907962906ce916708feba8226665d33d7f (patch)
treed951733a8613378448b65cc4cb1275b5aeeb6eaf /src/yuzu/game_list_p.h
parent8e7497d5bb17b7e322d191cd103479972bcdb39b (diff)
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/yuzu/game_list_p.h')
-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:
LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString());
return;
}
- CompatStatus status = iterator->second;
+ const CompatStatus& status = iterator->second;
setData(compatiblity, CompatNumberRole);
setText(QObject::tr(status.text));
setToolTip(QObject::tr(status.tooltip));