]> 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 31f1aeb231d59ac263112d257c7c6f84c311d432..127d3bd008d6680f72987b35e2e6c80244d3b0ea 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <config.h>
 
+#include "support/lassert.h"
 #include "support/Timeout.h"
 #include "support/debug.h"
 
@@ -29,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
@@ -40,7 +41,7 @@ public:
        unsigned int timeout_ms() const { return owner_.timeout_ms; }
 
 protected:
-       /// 
+       ///
        void timerEvent(QTimerEvent *) { owner_.emit(); }
 
 private:
@@ -134,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;