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

Unified Diff: src/messages.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/log.cc ('k') | src/messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index df714e73fbfbafdcacff3ec79bed6e74d1f2ccf4..965a78bd7d125e48a9e4b2fda9f561cd79cedca2 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -10,6 +10,8 @@
#ifndef V8_MESSAGES_H_
#define V8_MESSAGES_H_
+#include <memory>
+
#include "src/base/smart-pointers.h"
#include "src/handles.h"
#include "src/list.h"
@@ -555,8 +557,8 @@ class MessageHandler {
static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc,
Handle<Object> message_obj);
static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
- static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
- Handle<Object> data);
+ static std::unique_ptr<char[]> GetLocalizedMessage(Isolate* isolate,
+ Handle<Object> data);
};
« no previous file with comments | « src/log.cc ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698