summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-20 13:05:23 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-20 13:05:23 -0700
commit0d726c0c9931979d9b0594d56b52c861e08e09ba (patch)
tree05f1a5fe612b31075e5141688dcc822e97c97e9a /core/fpdfapi/fpdf_edit
parent8bd542690c3a0f56e20cd46e96c1ed7fed480690 (diff)
downloadpdfium-0d726c0c9931979d9b0594d56b52c861e08e09ba.tar.xz
CPDF_Document friend cleanup
Remove CPDF_Creator and CPDF_Parser as friends of CPDF_Document. Move all member variables to the private section, and add CPDF_TestDocument as a private friend. Review-Url: https://codereview.chromium.org/2349353003
Diffstat (limited to 'core/fpdfapi/fpdf_edit')
-rw-r--r--core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
index 36f622664d..45b8711efd 100644
--- a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
+++ b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
@@ -929,7 +929,7 @@ int32_t CPDF_Creator::WriteIndirectObjectToStream(const CPDF_Object* pObj) {
}
if (pDict) {
- if (pDict == m_pDocument->m_pRootDict || pDict == m_pEncryptDict)
+ if (pDict == m_pDocument->GetRoot() || pDict == m_pEncryptDict)
return 1;
if (pDict->IsSignatureDict())
return 1;
@@ -1749,17 +1749,17 @@ int32_t CPDF_Creator::WriteDoc_Stage4(IFX_Pause* pPause) {
if (m_File.AppendString("\r\n/Root ") < 0) {
return -1;
}
- if (m_File.AppendDWord(m_pDocument->m_pRootDict->GetObjNum()) < 0) {
+ if (m_File.AppendDWord(m_pDocument->GetRoot()->GetObjNum()) < 0) {
return -1;
}
if (m_File.AppendString(" 0 R\r\n") < 0) {
return -1;
}
- if (m_pDocument->m_pInfoDict) {
+ if (m_pDocument->GetInfo()) {
if (m_File.AppendString("/Info ") < 0) {
return -1;
}
- if (m_File.AppendDWord(m_pDocument->m_pInfoDict->GetObjNum()) < 0) {
+ if (m_File.AppendDWord(m_pDocument->GetInfo()->GetObjNum()) < 0) {
return -1;
}
if (m_File.AppendString(" 0 R\r\n") < 0) {