]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
This doesn't return a reference any more.
[lyx.git] / src / TocBackend.cpp
index c2515a7529f3fb99fafa030665f94ad511fbfd9e..02f7506e599e7333a853defe650226f1fbddccd4 100644 (file)
@@ -30,7 +30,7 @@
 #include "support/debug.h"
 #include "support/docstream.h"
 
-#include <boost/assert.hpp>
+#include "support/assert.h"
 
 using namespace std;
 
@@ -89,7 +89,7 @@ Toc const & TocBackend::toc(string const & type) const
 {
        // Is the type already supported?
        TocList::const_iterator it = tocs_.find(type);
-       BOOST_ASSERT(it != tocs_.end());
+       LASSERT(it != tocs_.end(), /**/);
 
        return it->second;
 }
@@ -202,7 +202,7 @@ TocIterator TocBackend::item(string const & type,
 {
        TocList::const_iterator toclist_it = tocs_.find(type);
        // Is the type supported?
-       BOOST_ASSERT(toclist_it != tocs_.end());
+       LASSERT(toclist_it != tocs_.end(), /**/);
 
        Toc const & toc_vector = toclist_it->second;
        TocIterator last = toc_vector.begin();