diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-25 16:41:00 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-25 16:41:00 -0800 |
commit | e56b3ad57573c677ad84bf4a2ffd649d6134b990 (patch) | |
tree | 09ec0d682b36266c745e6262281e9e35dcefbfa5 /fpdfsdk/src/fsdk_baseannot.cpp | |
parent | c64e4007ee4561ec2ed3ce986191caf9b024ef55 (diff) | |
download | pdfium-e56b3ad57573c677ad84bf4a2ffd649d6134b990.tar.xz |
Fix a bunch of pointless returns.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1637693002 .
Diffstat (limited to 'fpdfsdk/src/fsdk_baseannot.cpp')
-rw-r--r-- | fpdfsdk/src/fsdk_baseannot.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fpdfsdk/src/fsdk_baseannot.cpp b/fpdfsdk/src/fsdk_baseannot.cpp index 9540c5766d..aa9c0459b5 100644 --- a/fpdfsdk/src/fsdk_baseannot.cpp +++ b/fpdfsdk/src/fsdk_baseannot.cpp @@ -957,8 +957,6 @@ void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice, m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal); m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device, CPDF_Annot::Normal, NULL); - - return; } UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() { @@ -966,7 +964,5 @@ 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; } |