From 18c1d9192076fcb469085b8a87cdb81c7470a059 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 12 Jun 2019 18:12:41 -0400 Subject: 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. --- src/core/file_sys/ips_layer.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/core/file_sys/ips_layer.cpp') 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() { } else { // hex replacement const auto value = patch_line.substr(9); - replace.reserve(value.size() / 2); replace = Common::HexStringToVector(value, is_little_endian); } -- cgit v1.2.3