Bug 784739 - Switch from NULL to nullptr in toolkit/components/ (2/2); r=ehsan

This commit is contained in:
Birunthan Mohanathas
2013-10-10 16:38:19 -04:00
parent b55ff3bd65
commit 37fac24a80
18 changed files with 220 additions and 216 deletions

View File

@@ -63,8 +63,8 @@ Base64urlEncode(const uint8_t* aBytes,
uint32_t aNumBytes,
nsCString& _result)
{
// SetLength does not set aside space for NULL termination. PL_Base64Encode
// will not NULL terminate, however, nsCStrings must be NULL terminated. As a
// SetLength does not set aside space for null termination. PL_Base64Encode
// will not null terminate, however, nsCStrings must be null terminated. As a
// result, we set the capacity to be one greater than what we need, and the
// length to our desired length.
uint32_t length = (aNumBytes + 2) / 3 * 4; // +2 due to integer math.