aboutsummaryrefslogtreecommitdiff
path: root/src/processor/stackwalker_selftest.cc
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-10-23 20:25:42 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2006-10-23 20:25:42 +0000
commit2466d8e993a800a17e00deda2f3a27e0505140e1 (patch)
treec97ac5a3782727a6afd69da81649f0ba5fa863ac /src/processor/stackwalker_selftest.cc
parentMake stack_frame_info vector hold linked_ptrs instead of objects; (diff)
downloadbreakpad-2466d8e993a800a17e00deda2f3a27e0505140e1.tar.xz
Replace auto_ptr with scoped_ptr (#56). r=bryner
http://groups.google.com/group/airbag-dev/browse_thread/thread/54c66451ed8e2835 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@46 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/stackwalker_selftest.cc')
-rw-r--r--src/processor/stackwalker_selftest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/processor/stackwalker_selftest.cc b/src/processor/stackwalker_selftest.cc
index 5c8f93bc..76136a64 100644
--- a/src/processor/stackwalker_selftest.cc
+++ b/src/processor/stackwalker_selftest.cc
@@ -38,7 +38,6 @@
#include <cstdio>
-#include <memory>
#include "google/airbag_types.h"
#include "google/call_stack.h"
@@ -46,10 +45,11 @@
#include "google/stack_frame_cpu.h"
#include "processor/memory_region.h"
#include "processor/minidump_format.h"
+#include "processor/scoped_ptr.h"
-using std::auto_ptr;
using google_airbag::CallStack;
using google_airbag::MemoryRegion;
+using google_airbag::scoped_ptr;
using google_airbag::StackFrame;
using google_airbag::StackFramePPC;
using google_airbag::StackFrameX86;
@@ -218,7 +218,7 @@ static unsigned int CountCallerFrames() {
StackwalkerPPC stackwalker = StackwalkerPPC(&context, &memory, NULL, NULL);
#endif // __i386__ || __ppc__
- auto_ptr<CallStack> stack(stackwalker.Walk());
+ scoped_ptr<CallStack> stack(stackwalker.Walk());
#ifdef PRINT_STACKS
printf("\n");