summaryrefslogtreecommitdiffstats
path: root/dom/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'dom/bindings')
-rw-r--r--dom/bindings/BindingUtils.h12
-rw-r--r--dom/bindings/DOMJSClass.h2
-rw-r--r--dom/bindings/ErrorResult.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/dom/bindings/BindingUtils.h b/dom/bindings/BindingUtils.h
index 356d3aa00..e97f29359 100644
--- a/dom/bindings/BindingUtils.h
+++ b/dom/bindings/BindingUtils.h
@@ -3073,21 +3073,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
@@ -3102,7 +3102,7 @@ template<class T>
class GetCCParticipant<T, true>
{
public:
- static constexpr nsCycleCollectionParticipant*
+ static nsCycleCollectionParticipant*
Get()
{
return nullptr;
@@ -3125,7 +3125,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)
{
@@ -3142,7 +3142,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);
diff --git a/dom/bindings/DOMJSClass.h b/dom/bindings/DOMJSClass.h
index 6e779840f..c97cf9322 100644
--- a/dom/bindings/DOMJSClass.h
+++ b/dom/bindings/DOMJSClass.h
@@ -210,7 +210,7 @@ struct NativePropertiesN {
const int32_t iteratorAliasMethodIndex;
- constexpr const NativePropertiesN<7>* Upcast() const {
+ const NativePropertiesN<7>* Upcast() const {
return reinterpret_cast<const NativePropertiesN<7>*>(this);
}
diff --git a/dom/bindings/ErrorResult.h b/dom/bindings/ErrorResult.h
index da7ec30e7..15cf2aa03 100644
--- a/dom/bindings/ErrorResult.h
+++ b/dom/bindings/ErrorResult.h
@@ -56,7 +56,7 @@ enum ErrNum {
// Debug-only compile-time table of the number of arguments of each error, for use in static_assert.
#if defined(DEBUG) && (defined(__clang__) || defined(__GNUC__))
-uint16_t constexpr ErrorFormatNumArgs[] = {
+uint16_t ErrorFormatNumArgs[] = {
#define MSG_DEF(_name, _argc, _exn, _str) \
_argc,
#include "mozilla/dom/Errors.msg"