]> git.lyx.org Git - lyx.git/commitdiff
Fix compilation. Use BOOST_ASSERT instead of assert()
authorAbdelrazak Younes <younes@lyx.org>
Tue, 17 Apr 2007 15:59:47 +0000 (15:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 17 Apr 2007 15:59:47 +0000 (15:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17838 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacroTable.h

index e05a4938be853dd680c3022ab12981d73249881a..0435679318da74bd0c8eb74afbb8c0b7ba7f1863 100644 (file)
@@ -17,6 +17,8 @@
 
 #include "support/docstring.h"
 
+#include <boost/assert.hpp>
+
 namespace lyx {
 
 class MathArray;
@@ -46,7 +48,7 @@ public:
        ///
        bool locked() const { return lockCount_!=0; }
        ///
-       void unlock() { --lockCount_; assert(lockCount_>=0); }
+       void unlock() { --lockCount_; BOOST_ASSERT(lockCount_>=0); }
        
 private:
        ///