summaryrefslogtreecommitdiffstats
path: root/dom/indexedDB
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/indexedDB
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/indexedDB')
-rw-r--r--dom/indexedDB/ActorsParent.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp
index 74afef452..c7feb8d86 100644
--- a/dom/indexedDB/ActorsParent.cpp
+++ b/dom/indexedDB/ActorsParent.cpp
@@ -270,7 +270,7 @@ const uint32_t kDEBUGTransactionThreadSleepMS = 0;
#endif
template <size_t N>
-constexpr size_t
+size_t
LiteralStringLength(const char (&aArr)[N])
{
static_assert(N, "Zero-length string literal?!");
@@ -2905,11 +2905,11 @@ UpgradeKeyFunction::CopyAndUpgradeKeyBufferInternal(const uint8_t*& aSource,
MOZ_ASSERT(aDestination);
MOZ_ASSERT(aTagOffset <= Key::kMaxArrayCollapse);
- static constexpr uint8_t kOldNumberTag = 0x1;
- static constexpr uint8_t kOldDateTag = 0x2;
- static constexpr uint8_t kOldStringTag = 0x3;
- static constexpr uint8_t kOldArrayTag = 0x4;
- static constexpr uint8_t kOldMaxType = kOldArrayTag;
+ static uint8_t kOldNumberTag = 0x1;
+ static uint8_t kOldDateTag = 0x2;
+ static uint8_t kOldStringTag = 0x3;
+ static uint8_t kOldArrayTag = 0x4;
+ static uint8_t kOldMaxType = kOldArrayTag;
if (NS_WARN_IF(aRecursionDepth > Key::kMaxRecursionDepth)) {
IDB_REPORT_INTERNAL_ERR();