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

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

Issue 1635853002: XFA: Fix a bunch of pointless returns. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: nits Created 4 years, 11 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') | xfa/src/fee/src/fee/fde_txtedtengine.cpp » ('j') | 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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 971
972 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() { 972 UnderlyingPageType* CPDFSDK_Annot::GetUnderlyingPage() {
973 #ifdef PDF_ENABLE_XFA 973 #ifdef PDF_ENABLE_XFA
974 return GetPDFXFAPage(); 974 return GetPDFXFAPage();
975 #else // PDF_ENABLE_XFA 975 #else // PDF_ENABLE_XFA
976 return GetPDFPage(); 976 return GetPDFPage();
977 #endif // PDF_ENABLE_XFA 977 #endif // PDF_ENABLE_XFA
978 } 978 }
979 979
980 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { 980 CPDF_Page* CPDFSDK_Annot::GetPDFPage() {
981 if (m_pPageView) 981 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr;
982 return m_pPageView->GetPDFPage();
983 return NULL;
984 } 982 }
985 983
986 #ifdef PDF_ENABLE_XFA 984 #ifdef PDF_ENABLE_XFA
987 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() { 985 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() {
988 if (m_pPageView) 986 return m_pPageView ? m_pPageView->GetPDFXFAPage() : nullptr;
989 return m_pPageView->GetPDFXFAPage();
990 return NULL;
991 } 987 }
992 #endif // PDF_ENABLE_XFA 988 #endif // PDF_ENABLE_XFA
OLDNEW
« no previous file with comments | « fpdfsdk/src/fsdk_annothandler.cpp ('k') | xfa/src/fee/src/fee/fde_txtedtengine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698