Code

Patch from Lubomir Rintel: fixes for GCC 4.4
[inkscape.git] / src / dom / io / domstream.cpp
index 9a3d49f150991a55e823cefa28a7900c64998a62..b38dd532920f606145bc78f01b3661d610c431bc 100644 (file)
  *
  */
 
+#include <cstdio>
 #include <math.h>
 #include <stdarg.h>
 
 #include "domstream.h"
-#include "dom/charclass.h"
+#include "dom/ucd.h"
 
 namespace org
 {
@@ -72,11 +73,11 @@ void pipeStream(InputStream &source, OutputStream &dest)
 //# F O R M A T T E D    P R I N T I N G
 //#########################################################################
 
-static char *digits = "0123456789abcdefghijklmnopqrstuvwxyz";
+static char const *digits = "0123456789abcdefghijklmnopqrstuvwxyz";
 
 static int dprintInt(Writer &outs,
                      long arg, int base,
-                     int flag, int width, int precision)
+                     int flag, int width, int /*precision*/)
 {
 
     DOMString buf;
@@ -217,7 +218,7 @@ static int dprintDouble(Writer &outs, double val,
  * XML entities.
  */
 static int dprintString(Writer &outs, const DOMString &str,
-                        int flags, int width, int precision)
+                        int flags, int /*width*/, int /*precision*/)
 {
     int len = str.size();
     if (flags == '#')