X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fcounters.C;h=211791f981356b76490a0684be0c1b82beef2c15;hb=f676dacf9c69d8c906653f54d00342c01de6facf;hp=a9a89aef2878f182938c8763183cdd2bebdd9750;hpb=4b2a999762c83627476428e595d3c1e3704a3da0;p=lyx.git diff --git a/src/counters.C b/src/counters.C index a9a89aef28..211791f981 100644 --- a/src/counters.C +++ b/src/counters.C @@ -77,7 +77,7 @@ Counters::~Counters() void Counters::newCounter(string const & newc) { // First check if newc already exist - CounterList::const_iterator cit = counterList.find(newc); + CounterList::iterator cit = counterList.find(newc); // if alrady exist give warning and return if (cit != counterList.end()) { lyxerr << "The new counter already exist." << endl; @@ -90,7 +90,7 @@ void Counters::newCounter(string const & newc) void Counters::newCounter(string const & newc, string const & oldc) { // First check if newc already exist - CounterList::const_iterator cit = counterList.find(newc); + CounterList::iterator cit = counterList.find(newc); // if already existant give warning and return if (cit != counterList.end()) { lyxerr << "The new counter already exist." << endl;