Fix iterator const-ness.
This commit is contained in:
parent
5baca8598f
commit
6fc2403449
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue