| Index: fpdfsdk/fpdfsave.cpp
|
| diff --git a/fpdfsdk/fpdfsave.cpp b/fpdfsdk/fpdfsave.cpp
|
| index e5d7a409ae0de6c979f92d2bf6a35c1128036633..c9043249e1c7ddfcbba51e0ea54cdf284aeabe4b 100644
|
| --- a/fpdfsdk/fpdfsave.cpp
|
| +++ b/fpdfsdk/fpdfsave.cpp
|
| @@ -183,9 +183,9 @@ bool SaveXFADocumentData(CPDFXFA_Context* pContext,
|
| CPDF_Stream* pData = pPDFDocument->NewIndirect<CPDF_Stream>();
|
| pData->InitStreamFromFile(pDsfileWrite.get(), pDataDict);
|
| iLast = pArray->GetCount() - 2;
|
| - pArray->InsertAt(iLast, new CPDF_String("datasets", false));
|
| - pArray->InsertAt(iLast + 1,
|
| - new CPDF_Reference(pPDFDocument, pData->GetObjNum()));
|
| + pArray->InsertNewAt<CPDF_String>(iLast, "datasets", false);
|
| + pArray->InsertNewAt<CPDF_Reference>(iLast + 1, pPDFDocument,
|
| + pData->GetObjNum());
|
| }
|
| fileList->push_back(std::move(pDsfileWrite));
|
| }
|
| @@ -205,9 +205,9 @@ bool SaveXFADocumentData(CPDFXFA_Context* pContext,
|
| CPDF_Stream* pData = pPDFDocument->NewIndirect<CPDF_Stream>();
|
| pData->InitStreamFromFile(pfileWrite.get(), pDataDict);
|
| iLast = pArray->GetCount() - 2;
|
| - pArray->InsertAt(iLast, new CPDF_String("form", false));
|
| - pArray->InsertAt(iLast + 1,
|
| - new CPDF_Reference(pPDFDocument, pData->GetObjNum()));
|
| + pArray->InsertNewAt<CPDF_String>(iLast, "form", false);
|
| + pArray->InsertNewAt<CPDF_Reference>(iLast + 1, pPDFDocument,
|
| + pData->GetObjNum());
|
| }
|
| fileList->push_back(std::move(pfileWrite));
|
| }
|
|
|