]> git.lyx.org Git - lyx.git/blobdiff - src/counters.C
whichFont down to 5.3%
[lyx.git] / src / counters.C
index 211791f981356b76490a0684be0c1b82beef2c15..0fa97db461f040137e307a809a0810d7d6b6dd11 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  *
  * ====================================================== */
 #include "counters.h"
 #include "debug.h"
 
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Connection;
-using SigC::slot;
-#endif
-
 using std::endl;
 
 
@@ -70,7 +65,7 @@ Counters::~Counters()
        for (CounterList::iterator it = counterList.begin();
             it != counterList.end();
             ++it)
-               delete (*it).second;
+               delete it->second;
 }
 
 
@@ -105,8 +100,8 @@ void Counters::newCounter(string const & newc, string const & oldc)
        }
 
        Counter * tmp = new Counter;
-       (*it).second->onstep.connect(slot(tmp,
-                                        &Counter::reset));
+       it->second->onstep.connect(SigC::slot(tmp,
+                                             &Counter::reset));
        counterList[newc] = tmp;
 }
 
@@ -118,7 +113,7 @@ void Counters::set(string const & ctr, int val)
                lyxerr << "Counter does not exist." << endl;
                return;
        }
-       (*it).second->set(val);
+       it->second->set(val);
 }
 
 
@@ -129,7 +124,7 @@ void Counters::addto(string const & ctr, int val)
                lyxerr << "Counter does not exist." << endl;
                return;
        }
-       (*it).second->addto(val);
+       it->second->addto(val);
 }
 
 
@@ -140,7 +135,7 @@ int Counters::value(string const & ctr) const
                lyxerr << "Counter does not exist." << endl;
                return 0;
        }
-       return (*cit).second->value();
+       return cit->second->value();
 }
 
 
@@ -151,5 +146,5 @@ void Counters::step(string const & ctr)
                lyxerr << "Counter does not exist." << endl;
                return;
        }
-       (*it).second->step();
+       it->second->step();
 }