summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffnotify.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-22 17:46:05 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-22 17:46:05 +0000
commit9fff1c76c1083a5cc0543911811e36007a38aa3a (patch)
treed7769c918bdf41a572d3869c5f2e3982636b50a0 /xfa/fxfa/cxfa_ffnotify.h
parente6ca7c2d7d45bd59d53c3c6f9952e2001cf81890 (diff)
downloadpdfium-9fff1c76c1083a5cc0543911811e36007a38aa3a.tar.xz
Avoid some duplicate const/non-const getters.
Getters should nearly always be const when they return a non-const pointer to an unowned object. Saves a bit of code along the way. Grep for similar occurrences and add "const". Change-Id: I492bf962a7d62452fa40310146226dc0c8ebb753 Reviewed-on: https://pdfium-review.googlesource.com/35890 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffnotify.h')
-rw-r--r--xfa/fxfa/cxfa_ffnotify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffnotify.h b/xfa/fxfa/cxfa_ffnotify.h
index cdb43b71d2..6715f825ff 100644
--- a/xfa/fxfa/cxfa_ffnotify.h
+++ b/xfa/fxfa/cxfa_ffnotify.h
@@ -58,7 +58,7 @@ class CXFA_FFNotify {
bool bIsFormReady,
bool bRecursive);
void AddCalcValidate(CXFA_Node* pNode);
- CXFA_FFDoc* GetHDOC() { return m_pDoc.Get(); }
+ CXFA_FFDoc* GetHDOC() const { return m_pDoc.Get(); }
IXFA_AppProvider* GetAppProvider();
CXFA_FFWidgetHandler* GetWidgetHandler();
void OpenDropDownList(CXFA_FFWidget* hWidget);