summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffnotify.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-02-14 15:44:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-14 15:44:21 +0000
commitd8d6f55140bd4f0a67de833346113cfa6e03c4bd (patch)
tree1031b18090215b45f2a1533dd0b17390bd6d96cc /xfa/fxfa/cxfa_ffnotify.cpp
parent2f68cb53f5938e2dd572db79fc5689c987cb350d (diff)
downloadpdfium-d8d6f55140bd4f0a67de833346113cfa6e03c4bd.tar.xz
Cleanup CXFA_Document const-ness
This CL marks methods const where possible and removes redundant methods from CXFA_Document. Change-Id: I34804425469dfd52469daba68f64a4b511e5d4d0 Reviewed-on: https://pdfium-review.googlesource.com/26730 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffnotify.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffnotify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.cpp b/xfa/fxfa/cxfa_ffnotify.cpp
index 6802fd32b3..a0aa047134 100644
--- a/xfa/fxfa/cxfa_ffnotify.cpp
+++ b/xfa/fxfa/cxfa_ffnotify.cpp
@@ -97,7 +97,7 @@ CXFA_ContainerLayoutItem* CXFA_FFNotify::OnCreateContainerLayoutItem(
ASSERT(type == XFA_Element::ContentArea || type == XFA_Element::PageArea);
if (type == XFA_Element::PageArea) {
- CXFA_LayoutProcessor* pLayout = m_pDoc->GetXFADoc()->GetDocLayout();
+ CXFA_LayoutProcessor* pLayout = m_pDoc->GetXFADoc()->GetLayoutProcessor();
return new CXFA_FFPageView(m_pDoc->GetDocView(pLayout), pNode);
}
return new CXFA_ContainerLayoutItem(pNode);
@@ -187,7 +187,7 @@ CXFA_ContentLayoutItem* CXFA_FFNotify::OnCreateContentLayoutItem(
}
ASSERT(pWidget);
- CXFA_LayoutProcessor* pLayout = m_pDoc->GetXFADoc()->GetDocLayout();
+ CXFA_LayoutProcessor* pLayout = m_pDoc->GetXFADoc()->GetLayoutProcessor();
pWidget->SetDocView(m_pDoc->GetDocView(pLayout));
return pWidget;