]> git.lyx.org Git - lyx.git/blobdiff - src/support/Timeout.cpp
add onoff support for "inset-modify changetype xxx" in include inset
[lyx.git] / src / support / Timeout.cpp
index a736a89278cbfcd8930d1ffc0ef70af889c373c8..127d3bd008d6680f72987b35e2e6c80244d3b0ea 100644 (file)
 
 #include <config.h>
 
+#include "support/lassert.h"
 #include "support/Timeout.h"
 #include "support/debug.h"
 
 #include <QObject>
 #include <QTimerEvent>
 
+using namespace std;
+
 namespace lyx {
 
 /**
@@ -27,7 +30,7 @@ public:
        ///
        Impl(Timeout & owner) : owner_(owner), timeout_id(-1) {}
        ///
-       bool running() const { return timeout_id != -1; } 
+       bool running() const { return timeout_id != -1; }
        /// start the timer
        void start();
        /// stop the timer
@@ -38,7 +41,7 @@ public:
        unsigned int timeout_ms() const { return owner_.timeout_ms; }
 
 protected:
-       /// 
+       ///
        void timerEvent(QTimerEvent *) { owner_.emit(); }
 
 private:
@@ -60,7 +63,7 @@ void Timeout::Impl::reset()
 void Timeout::Impl::start()
 {
        if (running())
-               lyxerr << "Timeout::start: already running!" << std::endl;
+               lyxerr << "Timeout::start: already running!" << endl;
        timeout_id = startTimer(timeout_ms());
 }
 
@@ -132,7 +135,7 @@ Timeout & Timeout::setType(Type t)
 Timeout & Timeout::setTimeout(unsigned int msec)
 {
        // Can't have a timeout of zero!
-       BOOST_ASSERT(msec);
+       LASSERT(msec, /**/);
 
        timeout_ms = msec;
        return *this;