diff options
author | André Nusser <andre.nusser@googlemail.com> | 2016-03-23 15:59:41 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-03-23 15:59:41 +0100 |
commit | e8fcde7654f2d7dce494ebe1ca27abbebc3908b4 (patch) | |
tree | 42ee68e66205d6d4751f6bcd071df440ed62a245 /src/saxparser.h | |
parent | 04e088e65942b7f6fdd80c4e54768dca987ff9d7 (diff) |
Make attr a const ref.
Diffstat (limited to 'src/saxparser.h')
-rw-r--r-- | src/saxparser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saxparser.h b/src/saxparser.h index 680df1d..8664cb0 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); |