minor formatting cleanup

This commit is contained in:
Lee Thomason 2015-03-24 11:17:44 -07:00
parent 148cc1a0a5
commit 3ccb1cec29

View File

@ -2297,12 +2297,11 @@ bool XMLPrinter::VisitEnter( const XMLDocument& doc )
bool XMLPrinter::VisitEnter( const XMLElement& element, const XMLAttribute* attribute ) bool XMLPrinter::VisitEnter( const XMLElement& element, const XMLAttribute* attribute )
{ {
const XMLElement* parentElem = NULL; const XMLElement* parentElem = NULL;
if ( element.Parent() ) if ( element.Parent() ) {
{ parentElem = element.Parent()->ToElement();
parentElem = element.Parent()->ToElement();
} }
bool compactMode = parentElem ? CompactMode(*parentElem) : _compactMode; bool compactMode = parentElem ? CompactMode(*parentElem) : _compactMode;
OpenElement( element.Name(), compactMode ); OpenElement( element.Name(), compactMode );
while ( attribute ) { while ( attribute ) {
PushAttribute( attribute->Name(), attribute->Value() ); PushAttribute( attribute->Name(), attribute->Value() );