From 1df068061b5bb5e768a623318186523ffd251aaa Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Mon, 26 Oct 2015 21:28:52 +0800 Subject: Update the format --- xfa/src/fxfa/src/parser/xfa_parser_imp.cpp | 3 ++- xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'xfa') diff --git a/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp b/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp index 66258980e5..e782f064ba 100644 --- a/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp +++ b/xfa/src/fxfa/src/parser/xfa_parser_imp.cpp @@ -484,7 +484,7 @@ CXFA_Node* CXFA_SimpleParser::ParseAsXDPPacket_XDP( pXMLTemplateDOMRoot = pElement; pXFARootNode->InsertChild(pPacketNode); } - } else { + } else { CXFA_Node* pPacketNode = ParseAsXDPPacket(pElement, ePacket); if (pPacketNode) { if (pPacketInfo && @@ -498,6 +498,7 @@ CXFA_Node* CXFA_SimpleParser::ParseAsXDPPacket_XDP( } } if (!pXMLTemplateDOMRoot) { + // No template is found. return NULL; } if (pXMLDatasetsDOMRoot) { diff --git a/xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp b/xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp index 8bff2f6874..5a3059c0f5 100644 --- a/xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp +++ b/xfa/src/fxfa/src/parser/xfa_parser_imp_embeddertest.cpp @@ -8,8 +8,8 @@ class XFAParserImpEmbeddertest : public EmbedderTest {}; TEST_F(XFAParserImpEmbeddertest, Bug_216) { - EXPECT_TRUE(OpenDocument("testing/resources/bug_216.pdf")); - FPDF_PAGE page = LoadPage(0); - EXPECT_NE(nullptr, page); - UnloadPage(page); + EXPECT_TRUE(OpenDocument("testing/resources/bug_216.pdf")); + FPDF_PAGE page = LoadPage(0); + EXPECT_NE(nullptr, page); + UnloadPage(page); } \ No newline at end of file -- cgit v1.2.3