+/* 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;
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;
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;
}
Counter * tmp = new Counter;
- (*it).second->onstep.connect(slot(tmp,
+ (*it).second->onstep.connect(SigC::slot(tmp,
&Counter::reset));
counterList[newc] = tmp;
}