mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	boxcat: Avoid unnecessary object copy
This commit is contained in:
		
							parent
							
								
									7e5f595b31
								
							
						
					
					
						commit
						5cb1a343d1
					
				| @ -483,7 +483,7 @@ Boxcat::StatusResult Boxcat::GetStatus(std::optional<std::string>& global, | |||||||
|             global = json["global"].get<std::string>(); |             global = json["global"].get<std::string>(); | ||||||
| 
 | 
 | ||||||
|         if (json["games"].is_array()) { |         if (json["games"].is_array()) { | ||||||
|             for (const auto object : json["games"]) { |             for (const auto& object : json["games"]) { | ||||||
|                 if (object.is_object() && object.find("name") != object.end()) { |                 if (object.is_object() && object.find("name") != object.end()) { | ||||||
|                     EventStatus detail{}; |                     EventStatus detail{}; | ||||||
|                     if (object["header"].is_string()) { |                     if (object["header"].is_string()) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 comex
						comex