]> git.lyx.org Git - features.git/commitdiff
Remove test that is not needed.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Jul 2017 12:14:43 +0000 (14:14 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 17 Jul 2017 08:39:09 +0000 (10:39 +0200)
We know that buf is not null at this point.

Spotted by coverity.

src/BufferList.cpp

index cec9d2d76d7910f0510813929bb1b200163469a4..bcdec59d87cf9e34cf800c0afbcfe61836a550ea 100644 (file)
@@ -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);