summaryrefslogtreecommitdiff
path: root/src/saxparser.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-03-23 15:59:41 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-03-29 22:43:31 +0200
commit390f6f094d43f0d8cfca4efff13d002eb4cf6f19 (patch)
tree1e8644e553d349eb26bba373354f751717b8a598 /src/saxparser.h
parenteaf8c01ac99f9561870528ff608a073166be2163 (diff)
Make attr a const ref.
Diffstat (limited to 'src/saxparser.h')
-rw-r--r--src/saxparser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saxparser.h b/src/saxparser.h
index 3222b4e..c43f00a 100644
--- a/src/saxparser.h
+++ b/src/saxparser.h
@@ -45,7 +45,7 @@ protected:
using attr_t = std::map<std::string, std::string>;
virtual void characterData(const std::string& data) {}
- virtual void startTag(const std::string& name, attr_t& attr) {}
+ virtual void startTag(const std::string& name, const attr_t& attr) {}
virtual void endTag(const std::string& name) {}
virtual void parseError(const std::string& buf, std::size_t len, const std::string& error, std::size_t lineno);