mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-02-25 02:09:38 +00:00
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
This commit is contained in:
@@ -34,14 +34,14 @@
|
||||
|
||||
#include <climits>
|
||||
#include <cstdio>
|
||||
#include <memory>
|
||||
|
||||
#include "processor/linked_ptr.h"
|
||||
#include "processor/range_map-inl.h"
|
||||
#include "processor/scoped_ptr.h"
|
||||
|
||||
|
||||
using std::auto_ptr;
|
||||
using google_airbag::linked_ptr;
|
||||
using google_airbag::scoped_ptr;
|
||||
using google_airbag::RangeMap;
|
||||
|
||||
|
||||
@@ -331,7 +331,7 @@ bool RunTests() {
|
||||
|
||||
// Maintain the range map in a pointer so that deletion can be meaningfully
|
||||
// tested.
|
||||
auto_ptr<TestMap> range_map(new TestMap());
|
||||
scoped_ptr<TestMap> range_map(new TestMap());
|
||||
|
||||
// Run all of the test sets in sequence.
|
||||
unsigned int range_test_set_count = sizeof(range_test_sets) /
|
||||
|
||||
Reference in New Issue
Block a user