diff options
author | Moonchild <moonchild@palemoon.org> | 2022-05-24 06:51:11 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-24 06:51:46 +0000 |
commit | dc5a60fb62a0f43fe77517bd0e46fe40358b44b0 (patch) | |
tree | cb5dcd22fb22fc292adaff89626c35e18e09a6be /dom/xbl | |
parent | 1588077e629baa1c27e03149e39f06c265419e0b (diff) | |
download | uxp-dc5a60fb62a0f43fe77517bd0e46fe40358b44b0.tar.gz |
Issue #1742 - Part 1: Refactor rooting base class templates
Based on Bug 1325406
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 4bd7f83960..d9d16fdfbc 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 { |