Skip to content
Snippets Groups Projects
Commit 51b56190 authored by Lioncash's avatar Lioncash
Browse files

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.
parent 8e7497d5
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment