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

Unified Diff: include/v8.h

Issue 20081: Add explicit null checks after string conversions in the shells. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 10 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 | « no previous file | samples/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
===================================================================
--- include/v8.h (revision 1232)
+++ include/v8.h (working copy)
@@ -859,7 +859,7 @@
public:
explicit Utf8Value(Handle<v8::Value> obj);
~Utf8Value();
- char* operator*() { return str_; }
+ char* operator*() const { return str_; }
int length() { return length_; }
private:
char* str_;
@@ -878,7 +878,7 @@
public:
explicit AsciiValue(Handle<v8::Value> obj);
~AsciiValue();
- char* operator*() { return str_; }
+ char* operator*() const { return str_; }
int length() { return length_; }
private:
char* str_;
@@ -896,7 +896,7 @@
public:
explicit Value(Handle<v8::Value> obj);
~Value();
- uint16_t* operator*() { return str_; }
+ uint16_t* operator*() const { return str_; }
int length() { return length_; }
private:
uint16_t* str_;
« no previous file with comments | « no previous file | samples/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698