Index: xfa/fxfa/parser/xfa_document_serialize.cpp |
diff --git a/xfa/fxfa/parser/xfa_document_serialize.cpp b/xfa/fxfa/parser/xfa_document_serialize.cpp |
index 5db2025f6cc4a3df9e2b57c85de1a43ec15de228..52aa58530e5b1b0f4a462ab0c000c55ff307d1e1 100644 |
--- a/xfa/fxfa/parser/xfa_document_serialize.cpp |
+++ b/xfa/fxfa/parser/xfa_document_serialize.cpp |
@@ -31,7 +31,7 @@ FX_BOOL CXFA_DataImporter::ImportData(IFX_FileRead* pDataDocument) { |
pDataDocumentParser->Release(); |
return FALSE; |
} |
- if (pDataDocumentParser->DoParse(NULL) < XFA_PARSESTATUS_Done) { |
+ if (pDataDocumentParser->DoParse(nullptr) < XFA_PARSESTATUS_Done) { |
pDataDocumentParser->Release(); |
return FALSE; |
} |
@@ -477,7 +477,7 @@ FX_BOOL CXFA_DataExporter::Export(IFX_FileWrite* pWrite, |
IFX_Stream* pStream = IFX_Stream::CreateStream( |
pWrite, |
FX_STREAMACCESS_Text | FX_STREAMACCESS_Write | FX_STREAMACCESS_Append); |
- if (pStream == NULL) { |
+ if (!pStream) { |
return FALSE; |
} |
pStream->SetCodePage(FX_CODEPAGE_UTF8); |