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-29 22:19:49 +0200
commit01e216f82e24e7668a892e5a912ccbf1369ae255 (patch)
treec5e8775db8ba1626a3268c96bac993282bd4ebf5 /src/configparser.cc
parent0930fdc014bf36fb9e2715b3d14bff5fedf354a9 (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 1ada879..ef657b0 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")];
}
}