Index: Source/bindings/v8/NPV8Object.cpp |
diff --git a/Source/bindings/v8/NPV8Object.cpp b/Source/bindings/v8/NPV8Object.cpp |
index f49c71762244ca028b0a712b26f2f617877379e8..de061e5e688ff5a89e913bf1fe29645bc55a31ea 100644 |
--- a/Source/bindings/v8/NPV8Object.cpp |
+++ b/Source/bindings/v8/NPV8Object.cpp |
@@ -51,9 +51,9 @@ using namespace WebCore; |
namespace WebCore { |
-WrapperTypeInfo* npObjectTypeInfo() |
+const WrapperTypeInfo* npObjectTypeInfo() |
{ |
- static WrapperTypeInfo typeInfo = { 0, 0, 0, 0, 0, 0, 0, WrapperTypeObjectPrototype }; |
+ static const WrapperTypeInfo typeInfo = { 0, 0, 0, 0, 0, 0, 0, WrapperTypeObjectPrototype }; |
return &typeInfo; |
} |
@@ -118,7 +118,7 @@ NPObject* npCreateV8ScriptObject(NPP npp, v8::Handle<v8::Object> object, DOMWind |
{ |
// Check to see if this object is already wrapped. |
if (object->InternalFieldCount() == npObjectInternalFieldCount) { |
- WrapperTypeInfo* typeInfo = static_cast<WrapperTypeInfo*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperTypeIndex)); |
+ const WrapperTypeInfo* typeInfo = static_cast<const WrapperTypeInfo*>(object->GetAlignedPointerFromInternalField(v8DOMWrapperTypeIndex)); |
if (typeInfo == npObjectTypeInfo()) { |
NPObject* returnValue = v8ObjectToNPObject(object); |
_NPN_RetainObject(returnValue); |