From 640dadc93410e1caf9fef1ed0b9c606ea68187c1 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 17 May 2012 11:42:54 +0200 Subject: Make character data const ref. --- src/saxparser.cc | 2 +- src/saxparser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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. -- cgit v1.2.3