Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: src/string-stream.h

Issue 2173403002: Replace SmartArrayPointer<T> with unique_ptr<T[]> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-test.cc ('k') | src/string-stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/string-stream.h
diff --git a/src/string-stream.h b/src/string-stream.h
index 03ea0620ad2f240fd977b8338b51b1124e087b8b..75b3db4b489ae70541ec29132e0f3daf9a3864ab 100644
--- a/src/string-stream.h
+++ b/src/string-stream.h
@@ -5,6 +5,8 @@
#ifndef V8_STRING_STREAM_H_
#define V8_STRING_STREAM_H_
+#include <memory>
+
#include "src/allocation.h"
#include "src/base/smart-pointers.h"
#include "src/handles.h"
@@ -135,7 +137,7 @@ class StringStream final {
void OutputToStdOut() { OutputToFile(stdout); }
void Log(Isolate* isolate);
Handle<String> ToString(Isolate* isolate);
- base::SmartArrayPointer<const char> ToCString() const;
+ std::unique_ptr<char[]> ToCString() const;
int length() const { return length_; }
// Object printing support.
« no previous file with comments | « src/runtime/runtime-test.cc ('k') | src/string-stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698