mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	file_util: std::move FST entries in ScanDirectoryTree()
Avoids unnecessary copies when building up the FST entries.
This commit is contained in:
		
							parent
							
								
									4a3c4f5f67
								
							
						
					
					
						commit
						cc6cb45536
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -478,7 +478,7 @@ unsigned ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry, | |||
|         (*num_entries_out)++; | ||||
| 
 | ||||
|         // Push into the tree
 | ||||
|         parent_entry.children.push_back(entry); | ||||
|         parent_entry.children.push_back(std::move(entry)); | ||||
|         return true; | ||||
|     }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue