We have a false positive here, but annotating with coverity[] comments
is not very convenient. Let's try to use good old assertions instead.
#include "frontends/alert.h"
+#include "support/lassert.h"
#include "support/convert.h"
#include "support/debug.h"
#include "support/docstream.h"
InsetBibitem::~InsetBibitem()
{
- if (isBufferLoaded())
+ if (isBufferLoaded()) {
/* Coverity believes that this may throw an exception, but
* actually this code path is not taken when buffer_ == 0 */
- // coverity[fun_call_w_exception]
+ LATTEST(buffer_);
buffer().invalidateBibinfoCache();
+ }
}