| Index: core/fpdfapi/parser/cfdf_document.cpp
|
| diff --git a/core/fpdfapi/parser/cfdf_document.cpp b/core/fpdfapi/parser/cfdf_document.cpp
|
| index 0bfcb65df9cbe1a8949c6f1dd71e26c966ce0138..546308c3a31b8320c439ee491ba16edeffa8d688 100644
|
| --- a/core/fpdfapi/parser/cfdf_document.cpp
|
| +++ b/core/fpdfapi/parser/cfdf_document.cpp
|
| @@ -6,6 +6,9 @@
|
|
|
| #include "core/fpdfapi/parser/cfdf_document.h"
|
|
|
| +#include <memory>
|
| +#include <utility>
|
| +
|
| #include "core/fpdfapi/edit/cpdf_creator.h"
|
| #include "core/fpdfapi/parser/cpdf_dictionary.h"
|
| #include "core/fpdfapi/parser/cpdf_syntax_parser.h"
|
| @@ -25,8 +28,7 @@ CFDF_Document::~CFDF_Document() {
|
| CFDF_Document* CFDF_Document::CreateNewDoc() {
|
| CFDF_Document* pDoc = new CFDF_Document;
|
| pDoc->m_pRootDict = pDoc->NewIndirect<CPDF_Dictionary>();
|
| - pDoc->m_pRootDict->SetFor("FDF",
|
| - new CPDF_Dictionary(pDoc->GetByteStringPool()));
|
| + pDoc->m_pRootDict->SetNewFor<CPDF_Dictionary>("FDF");
|
| return pDoc;
|
| }
|
|
|
|
|