Forráskód Böngészése

Merge Print() calls

Dmitry-Me 11 éve
szülő
commit
6a79c17c87
1 módosított fájl, 1 hozzáadás és 3 törlés
  1. 1 3
      tinyxml2.cpp

+ 1 - 3
tinyxml2.cpp

@@ -2203,9 +2203,7 @@ void XMLPrinter::PushText( const char* text, bool cdata )
 
     SealElementIfJustOpened();
     if ( cdata ) {
-        Print( "<![CDATA[" );
-        Print( "%s", text );
-        Print( "]]>" );
+        Print( "<![CDATA[%s]]>", text );
     }
     else {
         PrintString( text, true );