summaryrefslogtreecommitdiffstats
path: root/dom/bindings/BindingUtils.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-17 23:48:58 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-21 11:10:23 +0000
commit3272147d97757673898da87bf02ea93438cae1a1 (patch)
tree853540025dd2241a5035b293fefc66b7b592d862 /dom/bindings/BindingUtils.h
parentf2866a5420b4645d888fc50b22f7cbdd8a178042 (diff)
downloadUXP-3272147d97757673898da87bf02ea93438cae1a1.tar
UXP-3272147d97757673898da87bf02ea93438cae1a1.tar.gz
UXP-3272147d97757673898da87bf02ea93438cae1a1.tar.lz
UXP-3272147d97757673898da87bf02ea93438cae1a1.tar.xz
UXP-3272147d97757673898da87bf02ea93438cae1a1.zip
Issue #1224 - Remove constant expressions from /dom
This excludes DOMProxy handlers in dom bindings because that's intertwined with codegen and js that needs to be handled together.
Diffstat (limited to 'dom/bindings/BindingUtils.h')
-rw-r--r--dom/bindings/BindingUtils.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h
index 5cab835b3..12a2e370a 100644
--- a/dom/bindings/BindingUtils.h
+++ b/dom/bindings/BindingUtils.h
@@ -3071,21 +3071,21 @@ class GetCCParticipant
{
// Helper for GetCCParticipant for classes that participate in CC.
template<class U>
- static constexpr nsCycleCollectionParticipant*
+ static nsCycleCollectionParticipant*
GetHelper(int, typename U::NS_CYCLE_COLLECTION_INNERCLASS* dummy=nullptr)
{
return T::NS_CYCLE_COLLECTION_INNERCLASS::GetParticipant();
}
// Helper for GetCCParticipant for classes that don't participate in CC.
template<class U>
- static constexpr nsCycleCollectionParticipant*
+ static nsCycleCollectionParticipant*
GetHelper(double)
{
return nullptr;
}
public:
- static constexpr nsCycleCollectionParticipant*
+ static nsCycleCollectionParticipant*
Get()
{
// Passing int() here will try to call the GetHelper that takes an int as
@@ -3100,7 +3100,7 @@ template<class T>
class GetCCParticipant<T, true>
{
public:
- static constexpr nsCycleCollectionParticipant*
+ static nsCycleCollectionParticipant*
Get()
{
return nullptr;
@@ -3123,7 +3123,7 @@ EnumerateGlobal(JSContext* aCx, JS::Handle<JSObject*> aObj);
template <class T>
struct CreateGlobalOptions
{
- static constexpr ProtoAndIfaceCache::Kind ProtoAndIfaceCacheKind =
+ static const ProtoAndIfaceCache::Kind ProtoAndIfaceCacheKind =
ProtoAndIfaceCache::NonWindowLike;
static void TraceGlobal(JSTracer* aTrc, JSObject* aObj)
{
@@ -3140,7 +3140,7 @@ struct CreateGlobalOptions
template <>
struct CreateGlobalOptions<nsGlobalWindow>
{
- static constexpr ProtoAndIfaceCache::Kind ProtoAndIfaceCacheKind =
+ static const ProtoAndIfaceCache::Kind ProtoAndIfaceCacheKind =
ProtoAndIfaceCache::WindowLike;
static void TraceGlobal(JSTracer* aTrc, JSObject* aObj);
static bool PostCreateGlobal(JSContext* aCx, JS::Handle<JSObject*> aGlobal);