Bug 792790 - Introduce NoBoundsCheck variants of accessors on nsHtml5HtmlAttributes; Make operator= in jArray nullptr-aware. r=smaug.

This commit is contained in:
Henri Sivonen
2012-10-01 11:49:01 +03:00
parent a40a7f4575
commit fc88a5853d
8 changed files with 187 additions and 116 deletions

View File

@@ -3906,8 +3906,8 @@ nsHtml5Tokenizer::emitOrAppendOne(const PRUnichar* val, int32_t returnState)
void
nsHtml5Tokenizer::end()
{
strBuf = 0;
longStrBuf = 0;
strBuf = nullptr;
longStrBuf = nullptr;
doctypeName = nullptr;
if (systemIdentifier) {
nsHtml5Portability::releaseString(systemIdentifier);