Przeglądaj źródła

Merge Print() calls

Dmitry-Me 11 lat temu
rodzic
commit
6a79c17c87
1 zmienionych plików z 1 dodań i 3 usunięć
  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 );