summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-10-27 14:18:05 +0200
committerMoonchild <moonchild@palemoon.org>2023-10-27 14:20:10 +0200
commit4001b58a3e7e5705cb270007280edc3fb3c4a892 (patch)
treea44136a2eda974b5f251543901749ea0c9f2fb55
parent134a8aac87ad4b83759dff265f70954408049a49 (diff)
downloaduxp-4001b58a3e7e5705cb270007280edc3fb3c4a892.tar.gz
[DOM] For now, use C++11 static_asserts only.RC_20231027RB_20231030
Single-param static_assert is C++17 or later. Follow-up to 3d92b8212595769c40da7ccfbafb3898cfaaf7bd
-rw-r--r--dom/base/Crypto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/Crypto.cpp b/dom/base/Crypto.cpp
index 2c72fb6692..6301fa6fd8 100644
--- a/dom/base/Crypto.cpp
+++ b/dom/base/Crypto.cpp
@@ -118,7 +118,7 @@ Crypto::GetRandomValues(JSContext* aCx, const ArrayBufferView& aArray,
void Crypto::RandomUUID(nsAString& aRetVal)
{
// NSID_LENGTH == 39 == 36 UUID chars + 2 curly braces + 1 NUL byte
- static_assert(NSID_LENGTH == 39);
+ static_assert(NSID_LENGTH == 39, "Crypto:RandomUUID: NSID_LENGTH must be 39");
nsCOMPtr<nsIUUIDGenerator> uuidgen =
do_GetService("@mozilla.org/uuid-generator;1");