2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #4697 from lioncash/copy5

ips_layer: Eliminate a redundant copy in Parse()
This commit is contained in:
bunnei 2020-09-22 13:42:47 -07:00 committed by GitHub
commit c07fd2898b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")) {