mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 14:32:56 +00:00
ips_layer: Eliminate a redundant copy in Parse()
Prevents unnecessary copying of the line being parsed.
This commit is contained in:
parent
53829d4cbd
commit
a881efbf26
|
@ -245,9 +245,11 @@ void IPSwitchCompiler::Parse() {
|
|||
|
||||
// Read rest of patch
|
||||
while (true) {
|
||||
if (i + 1 >= lines.size())
|
||||
if (i + 1 >= lines.size()) {
|
||||
break;
|
||||
const auto patch_line = lines[++i];
|
||||
}
|
||||
|
||||
const auto& patch_line = lines[++i];
|
||||
|
||||
// Start of new patch
|
||||
if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) {
|
||||
|
|
Loading…
Reference in a new issue