mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Remove test that is not needed.
We know that buf is not null at this point. Spotted by coverity.
This commit is contained in:
parent
64667735f4
commit
c2d182f59a
@ -96,7 +96,7 @@ void BufferList::release(Buffer * buf)
|
||||
BufferStorage::iterator const it =
|
||||
find(bstore.begin(), bstore.end(), buf);
|
||||
if (it != bstore.end()) {
|
||||
Buffer const * parent = buf ? buf->parent() : 0;
|
||||
Buffer const * parent = buf->parent();
|
||||
Buffer * tmp = (*it);
|
||||
bstore.erase(it);
|
||||
LASSERT(tmp, return);
|
||||
|
Loading…
Reference in New Issue
Block a user