mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 20:20:00 +00:00
Bug 1188207 - Fix more constructors in DOM; r=baku
This commit is contained in:
parent
23d68c5523
commit
046b75c0c7
@ -476,14 +476,14 @@ GetWrapperCache(const SmartPtr<T>& aObject)
|
||||
|
||||
struct MOZ_STACK_CLASS ParentObject {
|
||||
template<class T>
|
||||
ParentObject(T* aObject) :
|
||||
MOZ_IMPLICIT ParentObject(T* aObject) :
|
||||
mObject(aObject),
|
||||
mWrapperCache(GetWrapperCache(aObject)),
|
||||
mUseXBLScope(false)
|
||||
{}
|
||||
|
||||
template<class T, template<typename> class SmartPtr>
|
||||
ParentObject(const SmartPtr<T>& aObject) :
|
||||
MOZ_IMPLICIT ParentObject(const SmartPtr<T>& aObject) :
|
||||
mObject(aObject.get()),
|
||||
mWrapperCache(GetWrapperCache(aObject.get())),
|
||||
mUseXBLScope(false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user