Code

Rearrange to enable code that does not directly rely on lcms.
[inkscape.git] / src / dom / xmlreader.h
index 16ab883a0ac751e0beb0d7fcd4892e124ba2437d..3f97d87c9c6a4b2a7be2baaa8c786966e3bd127e 100644 (file)
@@ -13,7 +13,7 @@
  * Authors:
  *   Bob Jamison
  *
- * Copyright (C) 2005-2007 Bob Jamison
+ * Copyright (C) 2005-2008 Bob Jamison
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -74,12 +74,12 @@ public:
     /**
      *
      */
-    org::w3c::dom::DocumentPtr parseFile(char *fileName);
+    org::w3c::dom::DocumentPtr parseFile(const DOMString &fileName);
 
 
 private:
 
-    void error(char *format, ...)
+    void error(const char *format, ...)
     #ifdef G_GNUC_PRINTF
     G_GNUC_PRINTF(2, 3)
     #endif
@@ -87,7 +87,7 @@ private:
 
     int  get(int ch);
     int  peek(int ch);
-    bool match(int pos, char *str);
+    bool match(int pos, char const *str);
 
     int  skipwhite(int ch);
     int  getWord(int pos, DOMString &result);
@@ -116,7 +116,7 @@ private:
     int        len;   //length of parsed region
     DOMString  parsebuf;
 
-    DOMString  loadFile(char *fileName);
+    DOMString  loadFile(const DOMString &fileName);
 
     int        lineNr;
     int        colNr;