Mark Dictionary.Get as const.
This commit is contained in:
parent
51a55810b9
commit
94044b2950
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class Dictionary {
|
||||||
static Dictionary CreateEmpty(v8::Isolate* isolate);
|
static Dictionary CreateEmpty(v8::Isolate* isolate);
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool Get(const base::StringPiece& key, T* out) {
|
bool Get(const base::StringPiece& key, T* out) const {
|
||||||
v8::Handle<v8::Value> val = object_->Get(StringToV8(isolate_, key));
|
v8::Handle<v8::Value> val = object_->Get(StringToV8(isolate_, key));
|
||||||
return ConvertFromV8(isolate_, val, out);
|
return ConvertFromV8(isolate_, val, out);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue