summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: afd2571)
raw | patch | inline | side by side (parent: afd2571)
author | pjrm <pjrm@users.sourceforge.net> | |
Sun, 13 Apr 2008 11:28:59 +0000 (11:28 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Sun, 13 Apr 2008 11:28:59 +0000 (11:28 +0000) |
src/dom/xmlreader.cpp | patch | blob | history | |
src/dom/xmlreader.h | patch | blob | history | |
src/registrytool.cpp | patch | blob | history |
diff --git a/src/dom/xmlreader.cpp b/src/dom/xmlreader.cpp
index c6eae8ba3413ab0ee67c37d2fee26dc8e45526ca..8258514795d3716c220a4bf3e4f1d4afadc80eac 100644 (file)
--- a/src/dom/xmlreader.cpp
+++ b/src/dom/xmlreader.cpp
* Test if the given substring exists at the given position
* in parsebuf. Use peek() in case of out-of-bounds
*/
-bool XmlReader::match(int pos, char *str)
+bool XmlReader::match(int pos, char const *str)
{
while (*str)
{
diff --git a/src/dom/xmlreader.h b/src/dom/xmlreader.h
index 16ab883a0ac751e0beb0d7fcd4892e124ba2437d..fbd62c17944ed6c1af7454e5fd650ff213d1c217 100644 (file)
--- a/src/dom/xmlreader.h
+++ b/src/dom/xmlreader.h
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);
diff --git a/src/registrytool.cpp b/src/registrytool.cpp
index 7f6ff8a9a3b51a23cb26c59ff4549a9df3d82313..84af86effe53c139a595a8706f638bd0fa217623 100644 (file)
--- a/src/registrytool.cpp
+++ b/src/registrytool.cpp
RegistryTool rt;
char *key =
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\inkscape.exe";
- char *name = "";
- char *value = "c:\\inkscape\\inkscape.exe";
+ char const *name = "";
+ char const *value = "c:\\inkscape\\inkscape.exe";
if (!rt.setStringValue(key, name, value))
{
printf("Test failed\n");