From b0624da1181276ff4caa5e57a7a4abf766902e3e Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 5 Nov 2015 00:57:12 -0800 Subject: [PATCH] Use std::unique_ptr instead of UniquePtr. We're deprecating UniquePtr, so we need to move to the real thing. Bug: http://b/22403888 Change-Id: I5b7fdf4924dd8c12a8c7dba89278714ca6fdc60a --- cmds/idmap/create.cpp | 4 ++-- cmds/idmap/scan.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmds/idmap/create.cpp b/cmds/idmap/create.cpp index 6b2f46099b80e..c13d318f74495 100644 --- a/cmds/idmap/create.cpp +++ b/cmds/idmap/create.cpp @@ -1,6 +1,6 @@ #include "idmap.h" -#include +#include #include #include #include @@ -15,7 +15,7 @@ using namespace android; namespace { int get_zip_entry_crc(const char *zip_path, const char *entry_name, uint32_t *crc) { - UniquePtr zip(ZipFileRO::open(zip_path)); + std::unique_ptr zip(ZipFileRO::open(zip_path)); if (zip.get() == NULL) { return -1; } diff --git a/cmds/idmap/scan.cpp b/cmds/idmap/scan.cpp index f1b2f9e72ca0d..6d30f0d0ce343 100644 --- a/cmds/idmap/scan.cpp +++ b/cmds/idmap/scan.cpp @@ -4,7 +4,7 @@ #include "idmap.h" -#include +#include #include #include #include @@ -120,7 +120,7 @@ namespace { int parse_apk(const char *path, const char *target_package_name) { - UniquePtr zip(ZipFileRO::open(path)); + std::unique_ptr zip(ZipFileRO::open(path)); if (zip.get() == NULL) { ALOGW("%s: failed to open zip %s\n", __FUNCTION__, path); return -1;