diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-17 23:48:58 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-21 11:10:23 +0000 |
commit | 3272147d97757673898da87bf02ea93438cae1a1 (patch) | |
tree | 853540025dd2241a5035b293fefc66b7b592d862 /dom/base/nsAttrValue.h | |
parent | f2866a5420b4645d888fc50b22f7cbdd8a178042 (diff) | |
download | UXP-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/base/nsAttrValue.h')
-rw-r--r-- | dom/base/nsAttrValue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/base/nsAttrValue.h b/dom/base/nsAttrValue.h index 23f61a614..33ee91afd 100644 --- a/dom/base/nsAttrValue.h +++ b/dom/base/nsAttrValue.h @@ -268,7 +268,7 @@ public: // EnumTable can be initialized either with an int16_t value // or a value of an enumeration type that can fit within an int16_t. - constexpr EnumTable(const char* aTag, int16_t aValue) + EnumTable(const char* aTag, int16_t aValue) : tag(aTag) , value(aValue) { @@ -276,7 +276,7 @@ public: template<typename T, typename = typename std::enable_if<std::is_enum<T>::value>::type> - constexpr EnumTable(const char* aTag, T aValue) + EnumTable(const char* aTag, T aValue) : tag(aTag) , value(static_cast<int16_t>(aValue)) { |