Bug 763604 - Use typename for type parameters of template template parameters in BindingUtil.h - r=bz

This commit is contained in:
Benoit Jacob 2012-06-12 17:19:52 -04:00
parent 7a3fe9a05f
commit de4a33c534

View File

@ -331,7 +331,7 @@ WrapNewBindingObject(JSContext* cx, JSObject* scope, T* value, JS::Value* vp)
} }
// Helper for smart pointers (nsAutoPtr/nsRefPtr/nsCOMPtr). // Helper for smart pointers (nsAutoPtr/nsRefPtr/nsCOMPtr).
template <template <class> class SmartPtr, class T> template <template <typename> class SmartPtr, class T>
inline bool inline bool
WrapNewBindingObject(JSContext* cx, JSObject* scope, const SmartPtr<T>& value, WrapNewBindingObject(JSContext* cx, JSObject* scope, const SmartPtr<T>& value,
JS::Value* vp) JS::Value* vp)
@ -362,7 +362,7 @@ HandleNewBindingWrappingFailure(JSContext* cx, JSObject* scope, T* value,
} }
// Helper for smart pointers (nsAutoPtr/nsRefPtr/nsCOMPtr). // Helper for smart pointers (nsAutoPtr/nsRefPtr/nsCOMPtr).
template <template <class> class SmartPtr, class T> template <template <typename> class SmartPtr, class T>
MOZ_ALWAYS_INLINE bool MOZ_ALWAYS_INLINE bool
HandleNewBindingWrappingFailure(JSContext* cx, JSObject* scope, HandleNewBindingWrappingFailure(JSContext* cx, JSObject* scope,
const SmartPtr<T>& value, JS::Value* vp) const SmartPtr<T>& value, JS::Value* vp)
@ -439,7 +439,7 @@ struct ParentObject {
mWrapperCache(GetWrapperCache(aObject)) mWrapperCache(GetWrapperCache(aObject))
{} {}
template<class T, template<class> class SmartPtr> template<class T, template<typename> class SmartPtr>
ParentObject(const SmartPtr<T>& aObject) : ParentObject(const SmartPtr<T>& aObject) :
mObject(aObject.get()), mObject(aObject.get()),
mWrapperCache(GetWrapperCache(aObject.get())) mWrapperCache(GetWrapperCache(aObject.get()))