Status: New
Owner: ----

New issue 378 by [email protected]: Const Correctness for String::Value
http://code.google.com/p/v8/issues/detail?id=378

String::Value::length() needs a const modifier
String::Value::operator*() const should return const uint16_t*

class V8EXPORT Utf8Value {
  public:
   explicit Utf8Value(Handle<v8::Value> obj);
   ~Utf8Value();
   const char* operator*() const { return str_; }
   int length() const { return length_; }
...
};

class V8EXPORT AsciiValue {
  public:
   explicit AsciiValue(Handle<v8::Value> obj);
   ~AsciiValue();
   const char* operator*() const { return str_; }
   int length() const { return length_; }
...
};

class V8EXPORT Value {
  public:
   explicit Value(Handle<v8::Value> obj);
   ~Value();
   const uint16_t* operator*() const { return str_; }
   int length() const { return length_; }
...
};

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to