From cf403cac888ee277e77cecf0dc9a6e86b6f3f966 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 13 Nov 2009 14:22:03 +0000 Subject: More SAXParser const char conversion. --- server/src/queryparser.cc | 2 +- server/src/queryparser.h | 2 +- server/src/saxparser.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/src') diff --git a/server/src/queryparser.cc b/server/src/queryparser.cc index 602ba80..db562ae 100644 --- a/server/src/queryparser.cc +++ b/server/src/queryparser.cc @@ -69,7 +69,7 @@ void QueryParser::endTag(std::string name) if(name == "group" || name == "result") stack.pop_back(); } -void QueryParser::parseError(char *buf, size_t len, std::string error, int lineno) +void QueryParser::parseError(const char *buf, size_t len, std::string error, int lineno) { fprintf(stderr, "QueryParser error at line %d: %s\n", lineno, error.c_str()); fprintf(stderr, "\tBuffer %u bytes: [", len); diff --git a/server/src/queryparser.h b/server/src/queryparser.h index 3a73aa2..f901d2c 100644 --- a/server/src/queryparser.h +++ b/server/src/queryparser.h @@ -67,7 +67,7 @@ public: /** * Private parser callback. */ - void parseError(char *buf, size_t len, std::string error, int lineno); + void parseError(const char *buf, size_t len, std::string error, int lineno); private: // For read diff --git a/server/src/saxparser.cc b/server/src/saxparser.cc index 1f808b1..9072ab6 100644 --- a/server/src/saxparser.cc +++ b/server/src/saxparser.cc @@ -231,7 +231,7 @@ public: //printf("<%s>\n", name.c_str()); } - void parseError(char *buf, size_t len, std::string error, int lineno) + void parseError(const char *buf, size_t len, std::string error, int lineno) { throw Exception(error); } -- cgit v1.2.3