Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > media > contrib-release-src > by-pkgid > 4a46a64b7cae7a13d3bc7589cc8c2bdf > files > 5

libqwt-6.0.1-2.src.rpm

diff -urN qwt-6.0.1/textengines/mathml/qwt_mml_document.cpp qwt-6.0.1-patched/textengines/mathml/qwt_mml_document.cpp
--- qwt-6.0.1/textengines/mathml/qwt_mml_document.cpp	2011-08-02 01:33:53.000000000 +1100
+++ qwt-6.0.1-patched/textengines/mathml/qwt_mml_document.cpp	2012-04-28 18:12:50.000000000 +1100
@@ -3122,7 +3122,7 @@
 {
     if ( node == 0 ) return;
 
-    qWarning( ( indent + node->toStr() ).toLatin1().data() );
+    qWarning("%s", ( indent + node->toStr() ).toLatin1().data() );
 
     indent += "  ";
     const QwtMmlNode *child = node->firstChild();
@@ -3702,7 +3702,7 @@
         }
         else
         {
-            qWarning( ( "QwtMmlNode::scriptlevel(): bad value " + expl_sl_str ).toLatin1().data() );
+            qWarning("%s", ( "QwtMmlNode::scriptlevel(): bad value " + expl_sl_str ).toLatin1().data() );
             return parent_sl;
         }
     }
@@ -3719,7 +3719,7 @@
         return parent_sl - 1;
     else
     {
-        qWarning( ( "QwtMmlNode::scriptlevel(): could not parse value: \"" + expl_sl_str + "\"" ).toLatin1().data() );
+        qWarning("%s", ( "QwtMmlNode::scriptlevel(): could not parse value: \"" + expl_sl_str + "\"" ).toLatin1().data() );
         return parent_sl;
     }
 }
@@ -5637,7 +5637,7 @@
 
         if ( !literal.startsWith( "&#" ) )
         {
-            qWarning( ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
+            qWarning("%s", ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
             return QString::null;
         }
 
@@ -5646,7 +5646,7 @@
         int i = literal.indexOf( ';' );
         if ( i == -1 )
         {
-            qWarning( ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
+            qWarning("%s", ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
             return QString::null;
         }
 
@@ -5655,7 +5655,7 @@
 
         if ( char_code.isEmpty() )
         {
-            qWarning( ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
+            qWarning("%s", ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
             return QString::null;
         }
 
@@ -5666,7 +5666,7 @@
             unsigned c = char_code.toUInt( &ok, 16 );
             if ( !ok )
             {
-                qWarning( ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
+                qWarning("%s", ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
                 return QString::null;
             }
             result += QChar( c );
@@ -5677,7 +5677,7 @@
             unsigned c = char_code.toUInt( &ok, 10 );
             if ( !ok )
             {
-                qWarning( ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
+                qWarning("%s", ( "decodeEntityValue(): bad entity literal: \"" + literal + "\"" ).toLatin1().data() );
                 return QString::null;
             }
             result += QChar( c );