Index: src/string-stream.cc |
diff --git a/src/string-stream.cc b/src/string-stream.cc |
index 781f8cd6bf2d5ba1a4401e7b6b177766160ab29d..3ae4580709c25ab058983c6d00b873e18ba82991 100644 |
--- a/src/string-stream.cc |
+++ b/src/string-stream.cc |
@@ -4,6 +4,8 @@ |
#include "src/string-stream.h" |
+#include <memory> |
+ |
#include "src/handles-inl.h" |
#include "src/prototype.h" |
@@ -249,12 +251,11 @@ void StringStream::Add(const char* format, FmtElm arg0, FmtElm arg1, |
Add(CStrVector(format), Vector<FmtElm>(argv, argc)); |
} |
- |
-base::SmartArrayPointer<const char> StringStream::ToCString() const { |
+std::unique_ptr<char[]> StringStream::ToCString() const { |
char* str = NewArray<char>(length_ + 1); |
MemCopy(str, buffer_, length_); |
str[length_] = '\0'; |
- return base::SmartArrayPointer<const char>(str); |
+ return std::unique_ptr<char[]>(str); |
} |