Browse Source

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.
nce_cpp
Lioncash 7 years ago
parent
commit
af914546f2
  1. 1
      src/core/file_sys/ips_layer.cpp

1
src/core/file_sys/ips_layer.cpp

@ -287,7 +287,6 @@ void IPSwitchCompiler::Parse() {
} else {
// hex replacement
const auto value = patch_line.substr(9);
replace.reserve(value.size() / 2);
replace = Common::HexStringToVector(value, is_little_endian);
}

Loading…
Cancel
Save