diff options
author | André Nusser <andre.nusser@googlemail.com> | 2016-03-23 15:59:41 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-29 22:43:31 +0200 |
commit | 390f6f094d43f0d8cfca4efff13d002eb4cf6f19 (patch) | |
tree | 1e8644e553d349eb26bba373354f751717b8a598 /src/configparser.cc | |
parent | eaf8c01ac99f9561870528ff608a073166be2163 (diff) |
Make attr a const ref.
Diffstat (limited to 'src/configparser.cc')
-rw-r--r-- | src/configparser.cc | 6 |
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")]; } } |