]> git.lyx.org Git - lyx.git/blobdiff - src/counters.C
remove more forms.h cruft
[lyx.git] / src / counters.C
index 2a72bf99f4f50f1409a6c18a0c0438db6748f140..53d495a6815009b9d9b0ecf3367f30306596a5b4 100644 (file)
@@ -1,13 +1,23 @@
+/* This file is part of
+ * ====================================================== 
+ * 
+ *           LyX, The Document Processor
+ *
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2001 The LyX Team.
+ *
+ *
+ * ====================================================== */
+
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include <config.h>
 
 #include "counters.h"
 #include "debug.h"
 
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-using SigC::slot;
-#endif
-
 using std::endl;
 
 
@@ -62,7 +72,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 +85,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;
@@ -90,7 +100,7 @@ void Counters::newCounter(string const & newc, string const & oldc)
        }
 
        Counter * tmp = new Counter;
-       (*it).second->onstep.connect(slot(tmp,
+       (*it).second->onstep.connect(SigC::slot(tmp,
                                         &Counter::reset));
        counterList[newc] = tmp;
 }