From: pjrm Date: Sun, 13 Apr 2008 11:28:59 +0000 (+0000) Subject: address some char* string literal warnings. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8486f48e6f00f0d50227799f96cc04cb2195b442;p=inkscape.git address some char* string literal warnings. --- diff --git a/src/dom/xmlreader.cpp b/src/dom/xmlreader.cpp index c6eae8ba3..825851479 100644 --- a/src/dom/xmlreader.cpp +++ b/src/dom/xmlreader.cpp @@ -156,7 +156,7 @@ int XmlReader::peek(int p) * 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 16ab883a0..fbd62c179 100644 --- a/src/dom/xmlreader.h +++ b/src/dom/xmlreader.h @@ -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); diff --git a/src/registrytool.cpp b/src/registrytool.cpp index 7f6ff8a9a..84af86eff 100644 --- a/src/registrytool.cpp +++ b/src/registrytool.cpp @@ -167,8 +167,8 @@ void testReg() 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");