]> git.lyx.org Git - lyx.git/blobdiff - src/support/Timeout.cpp
infrastructure for 'graceful asserts'
[lyx.git] / src / support / Timeout.cpp
index 9c16b595ad85aa8e11c8ccb77faf86297a1a62d9..0c5c279b8e51d5ee3ad3ea229ad031e872c8d2a7 100644 (file)
 
 #include <config.h>
 
+#include "support/Timeout.h"
+#include "support/debug.h"
+
 #include <QObject>
 #include <QTimerEvent>
 
-#include "debug.h"
-#include "Timeout.h"
-
+using namespace std;
 
 namespace lyx {
 
@@ -61,7 +62,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());
 }
 
@@ -133,7 +134,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;