diff options
author | Justin Yun | 2017-08-16 04:54:20 -0500 |
---|---|---|
committer | Justin Yun | 2017-08-17 00:58:23 -0500 |
commit | 68b0ec6487186d59b1ec1dfcbc85673fc452bc4a (patch) | |
tree | b752a2e97462d1f681bb61315a75f875454f344d /gatekeeperd/gatekeeperd.cpp | |
parent | 0ef26c63dac794a76250cd7552622409c6c3b774 (diff) | |
download | platform-system-core-68b0ec6487186d59b1ec1dfcbc85673fc452bc4a.tar.gz platform-system-core-68b0ec6487186d59b1ec1dfcbc85673fc452bc4a.tar.xz platform-system-core-68b0ec6487186d59b1ec1dfcbc85673fc452bc4a.zip |
gatekeeperd: use std::unique_ptr
std::unique_ptr is available in this scope. Substitue the UniquePtr to
std::unique_ptr.
Bug: 63686260
Test: build and boot
Change-Id: Ib8ea3fb5c49c0e92d962f65f1139b073168f8698
Diffstat (limited to 'gatekeeperd/gatekeeperd.cpp')
-rw-r--r-- | gatekeeperd/gatekeeperd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gatekeeperd/gatekeeperd.cpp b/gatekeeperd/gatekeeperd.cpp index 184c6d222..61c880409 100644 --- a/gatekeeperd/gatekeeperd.cpp +++ b/gatekeeperd/gatekeeperd.cpp | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <inttypes.h> | 23 | #include <inttypes.h> |
24 | #include <stdint.h> | 24 | #include <stdint.h> |
25 | #include <unistd.h> | 25 | #include <unistd.h> |
26 | #include <memory> | ||
26 | 27 | ||
27 | #include <binder/IPCThreadState.h> | 28 | #include <binder/IPCThreadState.h> |
28 | #include <binder/IServiceManager.h> | 29 | #include <binder/IServiceManager.h> |
@@ -383,7 +384,7 @@ public: | |||
383 | 384 | ||
384 | private: | 385 | private: |
385 | sp<IGatekeeper> hw_device; | 386 | sp<IGatekeeper> hw_device; |
386 | UniquePtr<SoftGateKeeperDevice> soft_device; | 387 | std::unique_ptr<SoftGateKeeperDevice> soft_device; |
387 | 388 | ||
388 | bool clear_state_if_needed_done; | 389 | bool clear_state_if_needed_done; |
389 | }; | 390 | }; |