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
diff --git a/src/base64.cc b/src/base64.cc
index a1bb61c..4966314 100644
--- a/src/base64.cc
+++ b/src/base64.cc
@@ -1,10 +1,10 @@
// Copyright 2011 Google Inc. All Rights Reserved.
-#include "globals.h"
-#include "scoped_ptr.h"
-
#include <vector>
+#include "UniquePtr.h"
+#include "globals.h"
+
namespace art {
static const byte kMap[256] = {
@@ -65,7 +65,7 @@
if (y != 0) {
return NULL;
}
- scoped_ptr<byte> dst(new byte[tmp.size()]);
+ UniquePtr<byte[]> dst(new byte[tmp.size()]);
if (dst_size != NULL) {
*dst_size = tmp.size();
}