Index: core/fpdfapi/fpdf_parser/cfdf_document.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cfdf_document.cpp b/core/fpdfapi/fpdf_parser/cfdf_document.cpp |
index 773b97af2bc82baa2e07505c6218e603cb961a10..e2e4d0cf1e52ca18765e61635235d668d7f42868 100644 |
--- a/core/fpdfapi/fpdf_parser/cfdf_document.cpp |
+++ b/core/fpdfapi/fpdf_parser/cfdf_document.cpp |
@@ -10,16 +10,17 @@ |
#include "core/fpdfapi/fpdf_parser/cpdf_syntax_parser.h" |
#include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
-CFDF_Document::CFDF_Document() : CPDF_IndirectObjectHolder(nullptr) { |
- m_pRootDict = nullptr; |
- m_pFile = nullptr; |
- m_bOwnFile = FALSE; |
-} |
+CFDF_Document::CFDF_Document() |
+ : CPDF_IndirectObjectHolder(), |
+ m_pRootDict(nullptr), |
+ m_pFile(nullptr), |
+ m_bOwnFile(FALSE) {} |
+ |
CFDF_Document::~CFDF_Document() { |
- if (m_bOwnFile && m_pFile) { |
+ if (m_bOwnFile && m_pFile) |
m_pFile->Release(); |
- } |
} |
+ |
CFDF_Document* CFDF_Document::CreateNewDoc() { |
CFDF_Document* pDoc = new CFDF_Document; |
pDoc->m_pRootDict = new CPDF_Dictionary; |