X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FAuthor.cpp;h=c2dc6eeb29bed6771c3689ec4b90de08becb4b24;hb=0de1e7730fe798b95b9a9bd92d8bd2853ab5c997;hp=4f2f13f7f93251a9bb6a224566f241aa1d6abd0d;hpb=9abb7db46800e554f57e865a3e768602ffd9d6f1;p=lyx.git diff --git a/src/Author.cpp b/src/Author.cpp index 4f2f13f7f9..c2dc6eeb29 100644 --- a/src/Author.cpp +++ b/src/Author.cpp @@ -14,7 +14,7 @@ #include "support/lstrings.h" -#include +#include "support/lassert.h" #include @@ -71,7 +71,7 @@ int AuthorList::record(Author const & a) void AuthorList::record(int id, Author const & a) { - BOOST_ASSERT(unsigned(id) < authors_.size()); + LASSERT(unsigned(id) < authors_.size(), /**/); authors_[id] = a; } @@ -80,7 +80,7 @@ void AuthorList::record(int id, Author const & a) Author const & AuthorList::get(int id) const { Authors::const_iterator it(authors_.find(id)); - BOOST_ASSERT(it != authors_.end()); + LASSERT(it != authors_.end(), /**/); return it->second; }