From 2f0d173f94aaa2e54d2c0f8060373b4307d46f0d Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Tue, 19 May 2015 09:02:16 +0530 Subject: [PATCH] Fix whitespaces in tinyxml2.cpp --- tinyxml2.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index a6f1a9f..377ad23 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -886,18 +886,18 @@ char* XMLNode::ParseDeep( char* p, StrPair* parentEnd ) } break; } - + XMLElement* ele = node->ToDeclaration(); if ( decl ) { - // A declaration can only be the first child of a document. - // Set error, if document already has children. - if ( ! _document->NoChildren() ) { - _document->SetError(XML_ERROR_PARSING_DECLARATION, decl->Value(), 0); - DeleteNode( decl ); - break; - } + // A declaration can only be the first child of a document. + // Set error, if document already has children. + if ( !_document->NoChildren() ) { + _document->SetError( XML_ERROR_PARSING_DECLARATION, decl->Value(), 0); + DeleteNode( decl ); + break; + } } - + XMLElement* ele = node->ToElement(); if ( ele ) { // We read the end tag. Return it to the parent.