зеркало из https://github.com/mozilla/pjs.git
Fixing build warning.
This commit is contained in:
Родитель
69ad795985
Коммит
cdf47730e3
|
@ -2066,14 +2066,14 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
|
|||
}
|
||||
else if (encodingName) {
|
||||
enum XML_Error result;
|
||||
const XML_Char *s = poolStoreString(&tempPool,
|
||||
const XML_Char *str = poolStoreString(&tempPool,
|
||||
encoding,
|
||||
encodingName,
|
||||
encodingName
|
||||
+ XmlNameLength(encoding, encodingName));
|
||||
if (!s)
|
||||
if (!str)
|
||||
return XML_ERROR_NO_MEMORY;
|
||||
result = handleUnknownEncoding(parser, s);
|
||||
result = handleUnknownEncoding(parser, str);
|
||||
poolDiscard(&tempPool);
|
||||
if (result == XML_ERROR_UNKNOWN_ENCODING)
|
||||
eventPtr = encodingName;
|
||||
|
|
|
@ -278,7 +278,7 @@ nsXMLDocumentType::List(FILE* out, PRInt32 aIndent) const
|
|||
PRInt32 index;
|
||||
for (index = aIndent; --index >= 0; ) fputs(" ", out);
|
||||
|
||||
fprintf(out, "Document type...\n", mRefCnt);
|
||||
fprintf(out, "Document type refcount: %d\n", mRefCnt);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -2066,14 +2066,14 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
|
|||
}
|
||||
else if (encodingName) {
|
||||
enum XML_Error result;
|
||||
const XML_Char *s = poolStoreString(&tempPool,
|
||||
const XML_Char *str = poolStoreString(&tempPool,
|
||||
encoding,
|
||||
encodingName,
|
||||
encodingName
|
||||
+ XmlNameLength(encoding, encodingName));
|
||||
if (!s)
|
||||
if (!str)
|
||||
return XML_ERROR_NO_MEMORY;
|
||||
result = handleUnknownEncoding(parser, s);
|
||||
result = handleUnknownEncoding(parser, str);
|
||||
poolDiscard(&tempPool);
|
||||
if (result == XML_ERROR_UNKNOWN_ENCODING)
|
||||
eventPtr = encodingName;
|
||||
|
|
Загрузка…
Ссылка в новой задаче