void AuthorList::record(int id, Author const & a)
{
- // LASSERT: What should we do here?
- LASSERT(unsigned(id) < authors_.size(), /**/);
-
+ LBUFERR(unsigned(id) < authors_.size());
authors_[id] = a;
}
Author const & AuthorList::get(int id) const
{
- // LASSERT: What should we do here?
- LASSERT(id < (int)authors_.size() , /**/);
+ LASSERT(id < (int)authors_.size() , return authors_[0]);
return authors_[id];
}