summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-05-17 11:42:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-05-17 11:42:54 +0200
commit640dadc93410e1caf9fef1ed0b9c606ea68187c1 (patch)
tree20379bad8ffd92b6e1186fd42f7b478348e60489 /src
parentc2def65a701a973cde305d8c221d01beeb33eb84 (diff)
Make character data const ref.
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.