summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/saxparser.cc2
-rw-r--r--src/saxparser.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/saxparser.cc b/src/saxparser.cc
index 065a9d8..d261b72 100644
--- a/src/saxparser.cc
+++ b/src/saxparser.cc
@@ -193,7 +193,7 @@ void SAXParser::startTag(std::string, attributes_t &)
{
}
-void SAXParser::characterData(std::string &)
+void SAXParser::characterData(const std::string &)
{
}
diff --git a/src/saxparser.h b/src/saxparser.h
index c303d41..b027b30 100644
--- a/src/saxparser.h
+++ b/src/saxparser.h
@@ -67,7 +67,7 @@ public:
* In that cae it might be nessecary to buffer to received bytes.
* @param data A std::string containing the character data.
*/
- virtual void characterData(std::string &data);
+ virtual void characterData(const std::string &data);
/**
* Start tag callback mehtod.