summaryrefslogtreecommitdiff
path: root/src/class_linker.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2011-08-30 13:27:07 -0700
committer Elliott Hughes <enh@google.com> 2011-08-30 13:27:45 -0700
commit90a3369d3b6238f1a4c9b19ca68978dab1c39bc4 (patch)
treeb66ec9b2cced5713bd5902c499d57b533d2e7a9a /src/class_linker.cc
parent34023801bd544e613d6e85c9a5b2e743f3710e8f (diff)
Switch to UniquePtr.
Only one use of scoped_ptr was incorrect (but then again, I spent an afternoon with valgrind finding and fixing them just last week). Change-Id: If5ec1c8aa0794a4f652bfd1c0fffccf95facdc40
Diffstat (limited to 'src/class_linker.cc')
-rw-r--r--src/class_linker.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/class_linker.cc b/src/class_linker.cc
index e03eca68f7..9bbcb0cb93 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -2,18 +2,18 @@
#include "class_linker.h"
-#include <vector>
#include <utility>
+#include <vector>
+#include "UniquePtr.h"
#include "casts.h"
#include "dex_cache.h"
+#include "dex_file.h"
#include "dex_verifier.h"
#include "heap.h"
#include "logging.h"
#include "monitor.h"
#include "object.h"
-#include "dex_file.h"
-#include "scoped_ptr.h"
#include "space.h"
#include "thread.h"
#include "utils.h"
@@ -52,7 +52,7 @@ const char* ClassLinker::class_roots_descriptors_[kClassRootsMax] = {
};
ClassLinker* ClassLinker::Create(const std::vector<const DexFile*>& boot_class_path, Space* space) {
- scoped_ptr<ClassLinker> class_linker(new ClassLinker);
+ UniquePtr<ClassLinker> class_linker(new ClassLinker);
if (space == NULL) {
class_linker->Init(boot_class_path);
} else {