Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger

This commit is contained in:
Jinank Jain
2016-08-23 11:24:54 -04:00
parent ab564df1c5
commit b875b54a4e
18 changed files with 75 additions and 62 deletions

View File

@@ -2183,7 +2183,7 @@ WebSocketChannel::PrimeNewOutgoingMessage()
// Perform the sending mask. Never use a zero mask
do {
uint8_t *buffer;
PR_STATIC_ASSERT(4 == sizeof(mask));
static_assert(4 == sizeof(mask), "Size of the mask should be equal to 4");
nsresult rv = mRandomGenerator->GenerateRandomBytes(sizeof(mask),
&buffer);
if (NS_FAILED(rv)) {