]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
This doesn't return a reference any more.
[lyx.git] / src / TocBackend.cpp
index 1964147977395f25256dee7d668aa3c30eb1ee5a..02f7506e599e7333a853defe650226f1fbddccd4 100644 (file)
 #include "support/debug.h"
 #include "support/docstream.h"
 
+#include "support/assert.h"
+
 using namespace std;
 
+
 namespace lyx {
 
 ///////////////////////////////////////////////////////////////////////////
@@ -86,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;
 }
@@ -199,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();