mirror of
https://github.com/citra-emu/citra-canary.git
synced 2024-12-23 12:55:30 +00: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
52ec85be12
commit
f56a840333
|
@ -228,7 +228,7 @@ public:
|
||||||
LOG_WARNING(Frontend, "Invalid compatibility number {}", compatibility.toStdString());
|
LOG_WARNING(Frontend, "Invalid compatibility number {}", compatibility.toStdString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CompatStatus status = iterator->second;
|
const CompatStatus& status = iterator->second;
|
||||||
setData(compatibility, CompatNumberRole);
|
setData(compatibility, CompatNumberRole);
|
||||||
setText(QObject::tr(status.text));
|
setText(QObject::tr(status.text));
|
||||||
setToolTip(QObject::tr(status.tooltip));
|
setToolTip(QObject::tr(status.tooltip));
|
||||||
|
|
Loading…
Reference in a new issue