]> git.lyx.org Git - lyx.git/blobdiff - src/counters.C
Small fixes
[lyx.git] / src / counters.C
index 2a72bf99f4f50f1409a6c18a0c0438db6748f140..211791f981356b76490a0684be0c1b82beef2c15 100644 (file)
@@ -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 <config.h>
 
 #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;