mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-29 16:58:28 +00:00
[DOM] For now, use C++11 static_asserts only.
Single-param static_assert is C++17 or later. Follow-up to 3d92b8212595769c40da7ccfbafb3898cfaaf7bd
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user