Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: fpdfsdk/src/fsdk_baseannot.cpp

Issue 1637693002: Fix a bunch of pointless returns. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: no core Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/fsdk_annothandler.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "core/include/fxcrt/fx_ext.h" 9 #include "core/include/fxcrt/fx_ext.h"
10 #include "fpdfsdk/include/fsdk_baseannot.h" 10 #include "fpdfsdk/include/fsdk_baseannot.h"
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 950
951 return CPDF_Action(); 951 return CPDF_Action();
952 } 952 }
953 953
954 void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice, 954 void CPDFSDK_BAAnnot::Annot_OnDraw(CFX_RenderDevice* pDevice,
955 CFX_Matrix* pUser2Device, 955 CFX_Matrix* pUser2Device,
956 CPDF_RenderOptions* pOptions) { 956 CPDF_RenderOptions* pOptions) {
957 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal); 957 m_pAnnot->GetAPForm(m_pPageView->GetPDFPage(), CPDF_Annot::Normal);
958 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device, 958 m_pAnnot->DrawAppearance(m_pPageView->GetPDFPage(), pDevice, pUser2Device,
959 CPDF_Annot::Normal, NULL); 959 CPDF_Annot::Normal, NULL);
960
961 return;
962 } 960 }
963 961
964 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() { 962 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() {
965 return GetPDFPage(); 963 return GetPDFPage();
966 } 964 }
967 965
968 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { 966 CPDF_Page* CPDFSDK_Annot::GetPDFPage() {
969 if (m_pPageView) 967 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr;
970 return m_pPageView->GetPDFPage();
971 return NULL;
972 } 968 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fsdk_annothandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698