forked from eden-emu/eden
		
	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
							
								
									bdd44b2044
								
							
						
					
					
						commit
						776f523c80
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -128,7 +128,7 @@ public: | ||||||
|             LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString()); |             LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString()); | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
|         CompatStatus status = iterator->second; |         const CompatStatus& status = iterator->second; | ||||||
|         setData(compatiblity, CompatNumberRole); |         setData(compatiblity, CompatNumberRole); | ||||||
|         setText(QObject::tr(status.text)); |         setText(QObject::tr(status.text)); | ||||||
|         setToolTip(QObject::tr(status.tooltip)); |         setToolTip(QObject::tr(status.tooltip)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash