summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-06-12 18:12:41 -0400
committerGravatar Lioncash2019-06-12 18:12:45 -0400
commit18c1d9192076fcb469085b8a87cdb81c7470a059 (patch)
tree91b55fae28170e0e7ecace171c92b58dccc32bd7 /src
parentMerge pull request #2578 from lioncash/cnmt (diff)
downloadyuzu-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')
-rw-r--r--src/core/file_sys/ips_layer.cpp1
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