diff options
Diffstat (limited to 'dom/xbl')
-rw-r--r-- | dom/xbl/nsXBLMaybeCompiled.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/xbl/nsXBLMaybeCompiled.h b/dom/xbl/nsXBLMaybeCompiled.h index 4bd7f8396..d9d16fdfb 100644 --- a/dom/xbl/nsXBLMaybeCompiled.h +++ b/dom/xbl/nsXBLMaybeCompiled.h @@ -126,15 +126,15 @@ struct IsHeapConstructibleType<nsXBLMaybeCompiled<T>> static const bool value = true; }; -template <class UncompiledT> -class HeapBase<nsXBLMaybeCompiled<UncompiledT>> +template <class UncompiledT, class Wrapper> +class HeapBase<nsXBLMaybeCompiled<UncompiledT>, Wrapper> { - const JS::Heap<nsXBLMaybeCompiled<UncompiledT>>& wrapper() const { - return *static_cast<const JS::Heap<nsXBLMaybeCompiled<UncompiledT>>*>(this); + const Wrapper& wrapper() const { + return *static_cast<const Wrapper*>(this); } - JS::Heap<nsXBLMaybeCompiled<UncompiledT>>& wrapper() { - return *static_cast<JS::Heap<nsXBLMaybeCompiled<UncompiledT>>*>(this); + Wrapper& wrapper() { + return *static_cast<Wrapper*>(this); } const nsXBLMaybeCompiled<UncompiledT>* extract() const { |