]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Timeout.C
fix crash due to invalidated iterator
[lyx.git] / src / frontends / Timeout.C
index 9d7052fe548e9ed7e6a353ae26b613e3c1e96734..99ee026f82cbed1be3686c35fdcd1eb329b17cc2 100644 (file)
@@ -6,15 +6,12 @@
  * \author Lars Gullik Bjønnes
  * \author John Levon
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
 #include "Timeout.h"
-#include "support/LAssert.h"
-
-using namespace lyx::support;
 
 
 Timeout::~Timeout()
@@ -67,7 +64,7 @@ Timeout & Timeout::setType(Type t)
 Timeout & Timeout::setTimeout(unsigned int msec)
 {
        // Can't have a timeout of zero!
-       Assert(msec);
+       BOOST_ASSERT(msec);
 
        timeout_ms = msec;
        return * this;