mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	file_sys/ips_layer: Remove unnecessary reserve() call
Given 'replace' is assigned to on the following line, this isn't necessary, given the underlying data is going to be overwritten entirely.
This commit is contained in:
		
							parent
							
								
									7e2bcf04b4
								
							
						
					
					
						commit
						18c1d91920
					
				@ -287,7 +287,6 @@ void IPSwitchCompiler::Parse() {
 | 
				
			|||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    // hex replacement
 | 
					                    // hex replacement
 | 
				
			||||||
                    const auto value = patch_line.substr(9);
 | 
					                    const auto value = patch_line.substr(9);
 | 
				
			||||||
                    replace.reserve(value.size() / 2);
 | 
					 | 
				
			||||||
                    replace = Common::HexStringToVector(value, is_little_endian);
 | 
					                    replace = Common::HexStringToVector(value, is_little_endian);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user