mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +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
f61e88b7dd
commit
311a40747e
@ -98,7 +98,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