From abf758d2b4fc4e847573f37fb7db53da806d8e4e Mon Sep 17 00:00:00 2001 From: Tellen Yu Date: Wed, 13 Dec 2017 08:15:46 +0000 Subject: bringup: use std unique ptr instead of UniquePtr [5/12] PD# 156770 use std unique ptr, otherwise android version update it will have compile issue Change-Id: Ib4ef5e657f0b4621b2334f76a5fde001ae4039f9 --- diff --git a/soft/SoftGateKeeper.h b/soft/SoftGateKeeper.h index 972dd24..2f4f4d7 100644 --- a/soft/SoftGateKeeper.h +++ b/soft/SoftGateKeeper.h @@ -26,11 +26,11 @@ extern "C" { } #include -#include #include #include #include +#include namespace gatekeeper { @@ -105,7 +105,7 @@ public: } virtual bool IsHardwareBacked() const { - return true; + return false; } virtual bool GetFailureRecord(uint32_t uid, secure_id_t user_id, failure_record_t *record, @@ -173,7 +173,7 @@ private: typedef std::unordered_map FailureRecordMap; typedef std::unordered_map FastHashMap; - UniquePtr key_; + std::unique_ptr key_; FailureRecordMap failure_map_; FastHashMap fast_hash_map_; }; diff --git a/soft/SoftGateKeeperDevice.h b/soft/SoftGateKeeperDevice.h index ae71b8c..342879c 100644 --- a/soft/SoftGateKeeperDevice.h +++ b/soft/SoftGateKeeperDevice.h @@ -85,7 +85,7 @@ public: gatekeeper_device deviceSoft; private: - UniquePtr implSoft; + std::unique_ptr implSoft; }; } // namespace gatekeeper -- cgit