summaryrefslogtreecommitdiff
path: root/src/configparser.cc
diff options
context:
space:
mode:
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")];
}
}