]> git.lyx.org Git - lyx.git/blobdiff - src/WordList.cpp
Avoid a string copy and a small tweak.
[lyx.git] / src / WordList.cpp
index 558ddf8a1872ff4b11d408fc1a33715453f59afd..7dc620e0898e2fba99101d23a546021b118982bf 100644 (file)
@@ -17,7 +17,7 @@
 #include "support/docstring.h"
 #include "support/weighted_btree.h"
 
-#include <boost/assert.hpp>
+#include "support/lassert.h"
 
 namespace lyx {
 
@@ -62,7 +62,7 @@ WordList::~WordList()
 docstring const & WordList::word(size_t idx) const
 {
        Impl::Words::const_iterator it = d->words_.find_summed_weight(idx);
-       BOOST_ASSERT(it != d->words_.end());
+       LASSERT(it != d->words_.end(), /**/);
        
        // We use the key() method here, and not something like it->first
        // because the btree only returns (iterator-) temporary value pairs.