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:
		| @@ -228,7 +228,7 @@ public: | ||||
|             LOG_WARNING(Frontend, "Invalid compatibility number {}", compatibility.toStdString()); | ||||
|             return; | ||||
|         } | ||||
|         CompatStatus status = iterator->second; | ||||
|         const CompatStatus& status = iterator->second; | ||||
|         setData(compatibility, CompatNumberRole); | ||||
|         setText(QObject::tr(status.text)); | ||||
|         setToolTip(QObject::tr(status.tooltip)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user