]> git.mxchange.org Git - flightgear.git/commitdiff
Fix iterator const-ness.
authorJames Turner <zakalawe@mac.com>
Thu, 24 Mar 2016 20:23:39 +0000 (20:23 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 24 Mar 2016 20:23:39 +0000 (20:23 +0000)
src/Main/options.cxx

index 6ae8d9a62a02ebde0ba1ccf7d1d581dae2b3611a..77cba345cb36dd7247fbd0199a789f8950ea9c84 100644 (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);