summaryrefslogtreecommitdiff
path: root/libutils
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-11-05 01:09:22 -0800
committerDan Albert <danalbert@google.com>2015-11-05 01:09:22 -0800
commitf2d250969041d6b728c0bc071d5a1b5b92daf19e (patch)
treed023a45f130601ed838578d708d19008a336868a /libutils
parentd3b177ccb5502306546a357d0897e2552384b18c (diff)
Use std::unique_ptr instead of UniquePtr.
Bug: http://b/22403888 Change-Id: I398fa43b8f33c9281d7ff238521d75f1dcb8a5e7
Diffstat (limited to 'libutils')
-rw-r--r--libutils/CallStack.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libutils/CallStack.cpp b/libutils/CallStack.cpp
index 0bfb520e9..699da7469 100644
--- a/libutils/CallStack.cpp
+++ b/libutils/CallStack.cpp
@@ -16,11 +16,12 @@
#define LOG_TAG "CallStack"
+#include <memory>
+
#include <utils/CallStack.h>
#include <utils/Printer.h>
#include <utils/Errors.h>
#include <utils/Log.h>
-#include <UniquePtr.h>
#include <backtrace/Backtrace.h>
@@ -40,7 +41,7 @@ CallStack::~CallStack() {
void CallStack::update(int32_t ignoreDepth, pid_t tid) {
mFrameLines.clear();
- UniquePtr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid));
+ std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid));
if (!backtrace->Unwind(ignoreDepth)) {
ALOGW("%s: Failed to unwind callstack.", __FUNCTION__);
}