From 94044b2950dfb0392d27616d589ba0c60a0d28ef Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 23 Jun 2014 21:39:03 +0800 Subject: [PATCH] Mark Dictionary.Get as const. --- native_mate/dictionary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native_mate/dictionary.h b/native_mate/dictionary.h index 333bae0f7a..8c5dfeaae3 100644 --- a/native_mate/dictionary.h +++ b/native_mate/dictionary.h @@ -31,7 +31,7 @@ class Dictionary { static Dictionary CreateEmpty(v8::Isolate* isolate); template - bool Get(const base::StringPiece& key, T* out) { + bool Get(const base::StringPiece& key, T* out) const { v8::Handle val = object_->Get(StringToV8(isolate_, key)); return ConvertFromV8(isolate_, val, out); }