diff options
| author | 2019-06-12 18:12:41 -0400 | |
|---|---|---|
| committer | 2019-06-12 18:12:45 -0400 | |
| commit | 18c1d9192076fcb469085b8a87cdb81c7470a059 (patch) | |
| tree | 91b55fae28170e0e7ecace171c92b58dccc32bd7 /src/core | |
| parent | Merge pull request #2578 from lioncash/cnmt (diff) | |
| download | yuzu-18c1d9192076fcb469085b8a87cdb81c7470a059.tar.gz yuzu-18c1d9192076fcb469085b8a87cdb81c7470a059.tar.xz yuzu-18c1d9192076fcb469085b8a87cdb81c7470a059.zip | |
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.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/ips_layer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp index 485c4913a..2635acb9c 100644 --- a/src/core/file_sys/ips_layer.cpp +++ b/src/core/file_sys/ips_layer.cpp | |||
| @@ -287,7 +287,6 @@ void IPSwitchCompiler::Parse() { | |||
| 287 | } else { | 287 | } else { |
| 288 | // hex replacement | 288 | // hex replacement |
| 289 | const auto value = patch_line.substr(9); | 289 | const auto value = patch_line.substr(9); |
| 290 | replace.reserve(value.size() / 2); | ||
| 291 | replace = Common::HexStringToVector(value, is_little_endian); | 290 | replace = Common::HexStringToVector(value, is_little_endian); |
| 292 | } | 291 | } |
| 293 | 292 | ||