From 6fc24034495c8a9932600e366615d500f1a5a66a Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 24 Mar 2016 20:23:39 +0000 Subject: [PATCH] Fix iterator const-ness. --- src/Main/options.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 6ae8d9a62..77cba345c 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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); -- 2.39.5