mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09: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:
parent
cd66a17327
commit
8d42309580
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue