From 6e96403b8fd25a98f2cfc9680de45f39ff4ec491 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 15 May 2015 17:30:21 -0700 Subject: [PATCH] Switch UniquePtr to std::unique_ptr. Bug: 21209050 Change-Id: I91d4c44de479b37f2729382fcdf103b8c69aa668 --- debuggerd/backtrace.cpp | 5 +++-- debuggerd/tombstone.cpp | 13 ++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/debuggerd/backtrace.cpp b/debuggerd/backtrace.cpp index 79ee4e5b2..b8084c517 100644 --- a/debuggerd/backtrace.cpp +++ b/debuggerd/backtrace.cpp @@ -28,10 +28,11 @@ #include #include +#include + #include #include -#include #include "backtrace.h" @@ -96,7 +97,7 @@ static void dump_thread( return; } - UniquePtr backtrace(Backtrace::Create(tid, BACKTRACE_CURRENT_THREAD)); + std::unique_ptr backtrace(Backtrace::Create(tid, BACKTRACE_CURRENT_THREAD)); if (backtrace->Unwind(0)) { dump_backtrace_to_log(backtrace.get(), log, " "); } else { diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp index 4c804ee82..ccdfe851e 100644 --- a/debuggerd/tombstone.cpp +++ b/debuggerd/tombstone.cpp @@ -32,6 +32,9 @@ #include #include +#include +#include + #include #include @@ -45,10 +48,6 @@ #include -#include - -#include - #include "backtrace.h" #include "elf_utils.h" #include "machine.h" @@ -445,7 +444,7 @@ static bool dump_sibling_thread_report( dump_thread_info(log, pid, new_tid); dump_registers(log, new_tid); - UniquePtr backtrace(Backtrace::Create(pid, new_tid, map)); + std::unique_ptr backtrace(Backtrace::Create(pid, new_tid, map)); if (backtrace->Unwind(0)) { dump_backtrace_and_stack(backtrace.get(), log); } else { @@ -646,8 +645,8 @@ static bool dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, int si_code dump_signal_info(log, tid, signal, si_code); } - UniquePtr map(BacktraceMap::Create(pid)); - UniquePtr backtrace(Backtrace::Create(pid, tid, map.get())); + std::unique_ptr map(BacktraceMap::Create(pid)); + std::unique_ptr backtrace(Backtrace::Create(pid, tid, map.get())); dump_abort_message(backtrace.get(), log, abort_msg_address); dump_registers(log, tid); if (backtrace->Unwind(0)) {