mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
This is not a recoverable error.
This commit is contained in:
parent
ce26efcbd4
commit
bdaad6e6ff
@ -102,9 +102,7 @@ int AuthorList::record(Author const & a)
|
|||||||
|
|
||||||
void AuthorList::record(int id, Author const & a)
|
void AuthorList::record(int id, Author const & a)
|
||||||
{
|
{
|
||||||
// LASSERT: What should we do here?
|
LBUFERR(unsigned(id) < authors_.size());
|
||||||
LASSERT(unsigned(id) < authors_.size(), /**/);
|
|
||||||
|
|
||||||
authors_[id] = a;
|
authors_[id] = a;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,8 +116,7 @@ void AuthorList::recordCurrentAuthor(Author const & a)
|
|||||||
|
|
||||||
Author const & AuthorList::get(int id) const
|
Author const & AuthorList::get(int id) const
|
||||||
{
|
{
|
||||||
// authors_[0] is guaranteed to exist
|
LBUFERR(id < (int)authors_.size());
|
||||||
LASSERT(id < (int)authors_.size() , return authors_[0]);
|
|
||||||
return authors_[id];
|
return authors_[id];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user