Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(683)

Unified Diff: xfa/fxfa/parser/xfa_document_serialize.cpp

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxfa/parser/xfa_document_serialize.h ('k') | xfa/fxfa/parser/xfa_layout_appadapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d7b8bf04d903033a519f72299c46bdd32e42121d..97058e5568389812eef9f0db9453acb903ebffa4 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,9 +477,9 @@ 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);
FX_BOOL bRet = Export(pStream, pNode, dwFlag, pChecksum);
pStream->Release();
« no previous file with comments | « xfa/fxfa/parser/xfa_document_serialize.h ('k') | xfa/fxfa/parser/xfa_layout_appadapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698