]> git.lyx.org Git - lyx.git/blobdiff - src/support/Timeout.cpp
infrastructure for 'graceful asserts'
[lyx.git] / src / support / Timeout.cpp
index a736a89278cbfcd8930d1ffc0ef70af889c373c8..0c5c279b8e51d5ee3ad3ea229ad031e872c8d2a7 100644 (file)
@@ -16,6 +16,8 @@
 #include <QObject>
 #include <QTimerEvent>
 
+using namespace std;
+
 namespace lyx {
 
 /**
@@ -60,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());
 }
 
@@ -132,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;