summaryrefslogtreecommitdiff
path: root/src/configparser.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-03-23 15:59:41 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-23 15:59:41 +0100
commite8fcde7654f2d7dce494ebe1ca27abbebc3908b4 (patch)
tree42ee68e66205d6d4751f6bcd071df440ed62a245 /src/configparser.cc
parent04e088e65942b7f6fdd80c4e54768dca987ff9d7 (diff)
Make attr a const ref.
Diffstat (limited to 'src/configparser.cc')
-rw-r--r--src/configparser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configparser.cc b/src/configparser.cc
index e8a6d12..4bb5c45 100644
--- a/src/configparser.cc
+++ b/src/configparser.cc
@@ -43,12 +43,12 @@ void ConfigParser::characterData(const std::string& data)
}
}
-void ConfigParser::startTag(const std::string& name, attr_t& attr)
+void ConfigParser::startTag(const std::string& name, const attr_t& attr)
{
if(name == "value" && attr.find("name") != attr.end())
{
- values[attr["name"]] = "";
- str = &values[attr["name"]];
+ values[attr.at("name")] = "";
+ str = &values[attr.at("name")];
}
}