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

Side by Side Diff: xfa/fxfa/app/xfa_ffdocview.cpp

Issue 1998873002: Clean up XFA code which causes warnings (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address comments Created 4 years, 7 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 | « xfa/fxbarcode/oned/BC_OnedUPCAReader.cpp ('k') | xfa/fxfa/app/xfa_ffnotify.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 "xfa/fxfa/include/xfa_ffdocview.h" 7 #include "xfa/fxfa/include/xfa_ffdocview.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxfa/app/xfa_ffbarcode.h" 10 #include "xfa/fxfa/app/xfa_ffbarcode.h"
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToFirst() { 878 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToFirst() {
879 return NULL; 879 return NULL;
880 } 880 }
881 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToLast() { 881 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToLast() {
882 return NULL; 882 return NULL;
883 } 883 }
884 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToNext() { 884 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToNext() {
885 CXFA_Node* pItem = m_pCurWidgetAcc ? m_ContentIterator.MoveToNext() 885 CXFA_Node* pItem = m_pCurWidgetAcc ? m_ContentIterator.MoveToNext()
886 : m_ContentIterator.GetCurrent(); 886 : m_ContentIterator.GetCurrent();
887 while (pItem) { 887 while (pItem) {
888 if ((m_pCurWidgetAcc = (CXFA_WidgetAcc*)pItem->GetWidgetData())) { 888 m_pCurWidgetAcc = (CXFA_WidgetAcc*)pItem->GetWidgetData();
889 if (m_pCurWidgetAcc)
889 return m_pCurWidgetAcc; 890 return m_pCurWidgetAcc;
890 }
891 pItem = m_ContentIterator.MoveToNext(); 891 pItem = m_ContentIterator.MoveToNext();
892 } 892 }
893 return NULL; 893 return NULL;
894 } 894 }
895 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToPrevious() { 895 CXFA_WidgetAcc* CXFA_WidgetAccIterator::MoveToPrevious() {
896 return NULL; 896 return NULL;
897 } 897 }
898 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { 898 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() {
899 return NULL; 899 return NULL;
900 } 900 }
901 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { 901 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) {
902 return FALSE; 902 return FALSE;
903 } 903 }
904 void CXFA_WidgetAccIterator::SkipTree() { 904 void CXFA_WidgetAccIterator::SkipTree() {
905 m_ContentIterator.SkipChildrenAndMoveToNext(); 905 m_ContentIterator.SkipChildrenAndMoveToNext();
906 m_pCurWidgetAcc = NULL; 906 m_pCurWidgetAcc = NULL;
907 } 907 }
OLDNEW
« no previous file with comments | « xfa/fxbarcode/oned/BC_OnedUPCAReader.cpp ('k') | xfa/fxfa/app/xfa_ffnotify.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698