forked from eden-emu/eden
		
	ips_layer: Eliminate a redundant copy in Parse()
Prevents unnecessary copying of the line being parsed.
This commit is contained in:
		
							parent
							
								
									292693b696
								
							
						
					
					
						commit
						485eec243d
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -245,9 +245,11 @@ void IPSwitchCompiler::Parse() { | ||||||
| 
 | 
 | ||||||
|             // Read rest of patch
 |             // Read rest of patch
 | ||||||
|             while (true) { |             while (true) { | ||||||
|                 if (i + 1 >= lines.size()) |                 if (i + 1 >= lines.size()) { | ||||||
|                     break; |                     break; | ||||||
|                 const auto patch_line = lines[++i]; |                 } | ||||||
|  | 
 | ||||||
|  |                 const auto& patch_line = lines[++i]; | ||||||
| 
 | 
 | ||||||
|                 // Start of new patch
 |                 // Start of new patch
 | ||||||
|                 if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) { |                 if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash