mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-22 21:55:37 +01:00
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.
This commit is contained in:
parent
8e7497d5bb
commit
51b5619079
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user