]> git.lyx.org Git - lyx.git/blobdiff - src/boost.C
* lyx_main.C: remove duplicate function assertion_failed
[lyx.git] / src / boost.C
index b335e31c711f8b5d3e6e690718d2da3d6429f4ce..ff420ec555311da2a44d247c96dd3096e4951ec3 100644 (file)
 
 #include <exception>
 
-
-namespace lyx {
-
 using std::endl;
+using lyx::lyxerr;
+using lyx::LyX;
 
 namespace boost {
 
@@ -34,7 +33,6 @@ void throw_exception(std::exception const & e)
 }
 #endif
 
-namespace {
 
 void emergencyCleanup()
 {
@@ -47,8 +45,6 @@ void emergencyCleanup()
        LyX::cref().emergencyCleanup();
 }
 
-}
-
 
 void assertion_failed(char const * expr, char const * function,
                      char const * file, long line)
@@ -57,11 +53,7 @@ void assertion_failed(char const * expr, char const * function,
               << " by failing check \"" << expr << "\""
               << " in file " << file << ":" << line << endl;
        emergencyCleanup();
-       support::abort();
+       lyx::support::abort();
 }
 
-
-}
-
-
-} // namespace lyx
+} // namespace boost