Chromium Code Reviews| Index: fpdfsdk/fpdfsave.cpp |
| diff --git a/fpdfsdk/fpdfsave.cpp b/fpdfsdk/fpdfsave.cpp |
| index 9a006530c24d5ddb3e8869c9d6db4ab291feb6e6..6dcd07b8112b3abe11ff1bbb35761d204045d2f1 100644 |
| --- a/fpdfsdk/fpdfsave.cpp |
| +++ b/fpdfsdk/fpdfsave.cpp |
| @@ -49,7 +49,7 @@ class CFX_IFileWrite final : public IFX_StreamWrite { |
| }; |
| CFX_IFileWrite::CFX_IFileWrite() { |
| - m_pFileWriteStruct = NULL; |
| + m_pFileWriteStruct = nullptr; |
| } |
| FX_BOOL CFX_IFileWrite::Init(FPDF_FILEWRITE* pFileWriteStruct) { |
| @@ -140,8 +140,8 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument, |
| ScopedFileStream pTemplate(FX_CreateMemoryStream(pData, dwSize2)); |
| pContext->UpdateChecksum(pTemplate.get()); |
| } |
| - CPDF_Stream* pFormStream = NULL; |
| - CPDF_Stream* pDataSetsStream = NULL; |
| + CPDF_Stream* pFormStream = nullptr; |
| + CPDF_Stream* pDataSetsStream = nullptr; |
| if (iFormIndex != -1) { |
| // Get form CPDF_Stream |
| CPDF_Object* pFormPDFObj = pArray->GetObjectAt(iFormIndex); |
| @@ -182,7 +182,7 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument, |
| if (pDataSetsStream) |
| pDataSetsStream->InitStreamFromFile(pDsfileWrite.get(), pDataDict); |
| } else { |
| - CPDF_Stream* pData = new CPDF_Stream(NULL, 0, NULL); |
| + CPDF_Stream* pData = new CPDF_Stream(nullptr, 0, nullptr); |
| pData->InitStreamFromFile(pDsfileWrite.get(), pDataDict); |
| pPDFDocument->AddIndirectObject(pData); |
| iLast = pArray->GetCount() - 2; |
| @@ -203,7 +203,7 @@ bool SaveXFADocumentData(CPDFXFA_Document* pDocument, |
| if (pFormStream) |
| pFormStream->InitStreamFromFile(pfileWrite.get(), pDataDict); |
| } else { |
| - CPDF_Stream* pData = new CPDF_Stream(NULL, 0, NULL); |
| + CPDF_Stream* pData = new CPDF_Stream(nullptr, 0, nullptr); |
| pData->InitStreamFromFile(pfileWrite.get(), pDataDict); |
| pPDFDocument->AddIndirectObject(pData); |
| iLast = pArray->GetCount() - 2; |
| @@ -290,7 +290,7 @@ bool FPDF_Doc_Save(FPDF_DOCUMENT document, |
| FileMaker.RemoveSecurity(); |
| } |
| - CFX_IFileWrite* pStreamWrite = NULL; |
| + CFX_IFileWrite* pStreamWrite = nullptr; |
|
Tom Sepez
2016/06/02 20:26:26
combine
Lei Zhang
2016/06/07 08:03:13
Done.
|
| pStreamWrite = new CFX_IFileWrite; |
| pStreamWrite->Init(pFileWrite); |
| bool bRet = FileMaker.Create(pStreamWrite, flags); |