1
0
Fork 0

Fix iterator const-ness.

This commit is contained in:
James Turner 2016-03-24 20:23:39 +00:00
parent 5baca8598f
commit 6fc2403449

View file

@ -2228,7 +2228,7 @@ int Options::setOption(const string &key, const string &value)
}
if (!(desc->type & OPTION_MULTI)) {
OptionValueVec::const_iterator it = p->findValue(key);
OptionValueVec::iterator it = p->findValue(key);
if (it != p->values.end()) {
// remove existing valye
p->values.erase(it);