Index: Source/bindings/v8/V8Binding.h |
diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h |
index af429b86d8bbd8f76fab2a920ccea724ba062451..1a06778ac225ed9383ccf146ca8b869231a93415 100644 |
--- a/Source/bindings/v8/V8Binding.h |
+++ b/Source/bindings/v8/V8Binding.h |
@@ -226,14 +226,14 @@ namespace WebCore { |
} |
}; |
- template<typename T> |
- v8::Handle<v8::Value> v8Array(const Vector<T>& iterator, v8::Isolate* isolate) |
+ template<typename T, size_t inlineCapacity> |
+ v8::Handle<v8::Value> v8Array(const Vector<T, inlineCapacity>& iterator, v8::Isolate* isolate) |
{ |
v8::Local<v8::Array> result = v8::Array::New(iterator.size()); |
int index = 0; |
- typename Vector<T>::const_iterator end = iterator.end(); |
+ typename Vector<T, inlineCapacity>::const_iterator end = iterator.end(); |
typedef V8ValueTraits<T> TraitsType; |
- for (typename Vector<T>::const_iterator iter = iterator.begin(); iter != end; ++iter) |
+ for (typename Vector<T, inlineCapacity>::const_iterator iter = iterator.begin(); iter != end; ++iter) |
result->Set(v8Integer(index++, isolate), TraitsType::arrayV8Value(*iter, isolate)); |
return result; |
} |