Explorar o código

Merge Print() calls

Dmitry-Me %!s(int64=11) %!d(string=hai) anos
pai
achega
6a79c17c87
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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 );