| Index: fpdfsdk/fpdfppo.cpp
|
| diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp
|
| index ec3312b121c52eb0c57a8da44919b63c6037f153..95944c3504569c8237d249004fa1baff2fe2a8d3 100644
|
| --- a/fpdfsdk/fpdfppo.cpp
|
| +++ b/fpdfsdk/fpdfppo.cpp
|
| @@ -164,7 +164,7 @@ bool CPDF_PageOrganizer::PDFDocInit() {
|
|
|
| CFX_ByteString cbRootType = pNewRoot->GetStringFor("Type", "");
|
| if (cbRootType.IsEmpty())
|
| - pNewRoot->SetFor("Type", new CPDF_Name("Catalog"));
|
| + pNewRoot->SetFor("Type", new CPDF_Name(nullptr, "Catalog"));
|
|
|
| CPDF_Object* pElement = pNewRoot->GetObjectFor("Pages");
|
| CPDF_Dictionary* pNewPages =
|
| @@ -177,7 +177,7 @@ bool CPDF_PageOrganizer::PDFDocInit() {
|
|
|
| CFX_ByteString cbPageType = pNewPages->GetStringFor("Type", "");
|
| if (cbPageType.IsEmpty())
|
| - pNewPages->SetFor("Type", new CPDF_Name("Pages"));
|
| + pNewPages->SetFor("Type", new CPDF_Name(nullptr, "Pages"));
|
|
|
| if (!pNewPages->GetArrayFor("Kids")) {
|
| pNewPages->SetIntegerFor("Count", 0);
|
|
|