diff options
author | 2011-08-30 13:27:07 -0700 | |
---|---|---|
committer | 2011-08-30 13:27:45 -0700 | |
commit | 90a3369d3b6238f1a4c9b19ca68978dab1c39bc4 (patch) | |
tree | b66ec9b2cced5713bd5902c499d57b533d2e7a9a /src/compiler_test.cc | |
parent | 34023801bd544e613d6e85c9a5b2e743f3710e8f (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/compiler_test.cc')
-rw-r--r-- | src/compiler_test.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/compiler_test.cc b/src/compiler_test.cc index 229235a855..63881fdccd 100644 --- a/src/compiler_test.cc +++ b/src/compiler_test.cc @@ -1,16 +1,17 @@ // Copyright 2011 Google Inc. All Rights Reserved. +#include "compiler.h" + +#include <stdint.h> +#include <stdio.h> + +#include "UniquePtr.h" #include "class_linker.h" #include "common_test.h" -#include "compiler.h" #include "dex_cache.h" #include "dex_file.h" #include "heap.h" #include "object.h" -#include "scoped_ptr.h" - -#include <stdint.h> -#include <stdio.h> namespace art { @@ -114,7 +115,7 @@ class CompilerTest : public CommonTest { #endif // __arm__ } private: - scoped_ptr<const DexFile> dex_file_; + UniquePtr<const DexFile> dex_file_; }; // TODO renenable when compiler can handle libcore |