summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fsdk_baseannot.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-01-25 16:35:42 -0800
committerLei Zhang <thestig@chromium.org>2016-01-25 16:35:42 -0800
commit05e67415684adc36af228ca2f1e0efc30a40d242 (patch)
treef1b18021923a3e79aecf5fac7144df3552b06db0 /fpdfsdk/src/fsdk_baseannot.cpp
parent52bb44383a705b600e0d028bff5ade17856f5a60 (diff)
downloadpdfium-05e67415684adc36af228ca2f1e0efc30a40d242.tar.xz
And a few other nits. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1635853002 .
Diffstat (limited to 'fpdfsdk/src/fsdk_baseannot.cpp')
-rw-r--r--fpdfsdk/src/fsdk_baseannot.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/fpdfsdk/src/fsdk_baseannot.cpp b/fpdfsdk/src/fsdk_baseannot.cpp
index 30e702241e..0d65e06b38 100644
--- a/fpdfsdk/src/fsdk_baseannot.cpp
+++ b/fpdfsdk/src/fsdk_baseannot.cpp
@@ -978,15 +978,11 @@ UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() {
}
CPDF_Page* CPDFSDK_Annot::GetPDFPage() {
- if (m_pPageView)
- return m_pPageView->GetPDFPage();
- return NULL;
+ return m_pPageView ? m_pPageView->GetPDFPage() : nullptr;
}
#ifdef PDF_ENABLE_XFA
CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() {
- if (m_pPageView)
- return m_pPageView->GetPDFXFAPage();
- return NULL;
+ return m_pPageView ? m_pPageView->GetPDFXFAPage() : nullptr;
}
#endif // PDF_ENABLE_XFA