X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fcounters.C;h=211791f981356b76490a0684be0c1b82beef2c15;hb=f676dacf9c69d8c906653f54d00342c01de6facf;hp=2a72bf99f4f50f1409a6c18a0c0438db6748f140;hpb=0b1b6dfa4ed99f2b7c2a36cb56dcbb9d5553ac33;p=lyx.git diff --git a/src/counters.C b/src/counters.C index 2a72bf99f4..211791f981 100644 --- a/src/counters.C +++ b/src/counters.C @@ -1,3 +1,18 @@ +/* This file is part of + * ====================================================== + * + * LyX, The Document Processor + * + * Copyright 1995 Matthias Ettrich + * Copyright 1995-2000 The LyX Team. + * + * + * ====================================================== */ + +#ifdef __GNUG__ +#pragma implementation +#endif + #include #include "counters.h" @@ -62,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; @@ -75,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;