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

Side by Side Diff: xfa/fxfa/parser/cxfa_simple_parser.cpp

Issue 2448943003: Fix some return FALSE in functions that return pointers (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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/parser/cxfa_simple_parser.h" 7 #include "xfa/fxfa/parser/cxfa_simple_parser.h"
8 8
9 #include "core/fxcrt/fx_ext.h" 9 #include "core/fxcrt/fx_ext.h"
10 #include "xfa/fgas/crt/fgas_codepage.h" 10 #include "xfa/fgas/crt/fgas_codepage.h"
(...skipping 19 matching lines...) Expand all
30 continue; 30 continue;
31 31
32 if (!bVerifyWellFormness) 32 if (!bVerifyWellFormness)
33 return pXMLNode; 33 return pXMLNode;
34 34
35 for (CFDE_XMLNode* pNextNode = 35 for (CFDE_XMLNode* pNextNode =
36 pXMLNode->GetNodeItem(CFDE_XMLNode::NextSibling); 36 pXMLNode->GetNodeItem(CFDE_XMLNode::NextSibling);
37 pNextNode; 37 pNextNode;
38 pNextNode = pNextNode->GetNodeItem(CFDE_XMLNode::NextSibling)) { 38 pNextNode = pNextNode->GetNodeItem(CFDE_XMLNode::NextSibling)) {
39 if (pNextNode->GetType() == FDE_XMLNODE_Element) 39 if (pNextNode->GetType() == FDE_XMLNODE_Element)
40 return FALSE; 40 return nullptr;
41 } 41 }
42 return pXMLNode; 42 return pXMLNode;
43 } 43 }
44 return nullptr; 44 return nullptr;
45 } 45 }
46 46
47 void GetElementTagNamespaceURI(CFDE_XMLElement* pElement, 47 void GetElementTagNamespaceURI(CFDE_XMLElement* pElement,
48 CFX_WideString& wsNamespaceURI) { 48 CFX_WideString& wsNamespaceURI) {
49 CFX_WideString wsNodeStr; 49 CFX_WideString wsNodeStr;
50 pElement->GetNamespacePrefix(wsNodeStr); 50 pElement->GetNamespacePrefix(wsNodeStr);
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 pXFANode->GetDocument()->SetFlag(XFA_DOCFLAG_StrictScoping, TRUE); 1300 pXFANode->GetDocument()->SetFlag(XFA_DOCFLAG_StrictScoping, TRUE);
1301 } 1301 }
1302 } 1302 }
1303 } 1303 }
1304 } 1304 }
1305 1305
1306 void CXFA_SimpleParser::CloseParser() { 1306 void CXFA_SimpleParser::CloseParser() {
1307 m_pXMLDoc.reset(); 1307 m_pXMLDoc.reset();
1308 m_pStream.reset(); 1308 m_pStream.reset();
1309 } 1309 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp ('k') | xfa/fxfa/parser/xfa_document_datamerger_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698