Index: include/v8.h |
=================================================================== |
--- include/v8.h (Revision 2827) |
+++ include/v8.h (Arbeitskopie) |
@@ -979,8 +979,9 @@ |
public: |
explicit Utf8Value(Handle<v8::Value> obj); |
~Utf8Value(); |
- char* operator*() const { return str_; } |
- int length() { return length_; } |
+ char* operator*() { return str_; } |
+ const char* operator*() const { return str_; } |
+ int length() const { return length_; } |
private: |
char* str_; |
int length_; |
@@ -1001,8 +1002,9 @@ |
public: |
explicit AsciiValue(Handle<v8::Value> obj); |
~AsciiValue(); |
- char* operator*() const { return str_; } |
- int length() { return length_; } |
+ char* operator*() { return str_; } |
+ const char* operator*() const { return str_; } |
+ int length() const { return length_; } |
private: |
char* str_; |
int length_; |
@@ -1022,8 +1024,9 @@ |
public: |
explicit Value(Handle<v8::Value> obj); |
~Value(); |
- uint16_t* operator*() const { return str_; } |
- int length() { return length_; } |
+ uint16_t* operator*() { return str_; } |
+ const uint16_t* operator*() const { return str_; } |
+ int length() const { return length_; } |
private: |
uint16_t* str_; |
int length_; |