mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	game_list: Make the AddEntry argument a const reference
appendRow takes a QList by const reference, so it doesn't need to be modifiable.
This commit is contained in:
		
							parent
							
								
									aa05d36823
								
							
						
					
					
						commit
						db33d7668e
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -49,7 +49,7 @@ GameList::~GameList() { | |||
|     emit ShouldCancelWorker(); | ||||
| } | ||||
| 
 | ||||
| void GameList::AddEntry(QList<QStandardItem*> entry_items) { | ||||
| void GameList::AddEntry(const QList<QStandardItem*>& entry_items) { | ||||
|     item_model->invisibleRootItem()->appendRow(entry_items); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -34,7 +34,7 @@ public: | |||
|     void LoadInterfaceLayout(); | ||||
| 
 | ||||
| public slots: | ||||
|     void AddEntry(QList<QStandardItem*> entry_items); | ||||
|     void AddEntry(const QList<QStandardItem*>& entry_items); | ||||
| 
 | ||||
| private slots: | ||||
|     void ValidateEntry(const QModelIndex& item); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue