From fada91ccf2b31d69d72899388b1833186d763d1a Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 27 Oct 2016 18:16:06 -0700 Subject: applypatch: Switch the parameter of Value** to std::vector. Test: Unit tests and install-recovery.sh pass on angler and dragon. Change-Id: I328e6554edca667cf850f5584ebf1ac211e3d4d1 --- updater/install.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'updater') diff --git a/updater/install.cpp b/updater/install.cpp index a41c5db3c..5f3f675b1 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -1061,15 +1061,13 @@ Value* ApplyPatchFn(const char* name, State* state, int argc, Expr* argv[]) { } std::vector patch_sha_str; - std::vector patch_ptrs; for (int i = 0; i < patchcount; ++i) { patch_sha_str.push_back(patch_shas[i]->data); - patch_ptrs.push_back(patches[i].get()); } int result = applypatch(source_filename, target_filename, target_sha1, target_size, - patch_sha_str, patch_ptrs.data(), NULL); + patch_sha_str, patches, NULL); return StringValue(result == 0 ? "t" : ""); } -- cgit v1.2.3