X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCitation.cpp;h=8571a28643b5c14e93c22eedbe47a0110cf7c55b;hb=cf6ff2cac79d09adafa63e3a1ec02dfb09f707b9;hp=fe752246f53460ba85c554d9113ff5db0a93c3fa;hpb=ba39d2de04ebe3754f944692a454b91eef4e6177;p=lyx.git diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index fe752246f5..8571a28643 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -55,10 +55,10 @@ InsetCitation::InsetCitation(Buffer * buf, InsetCommandParams const & p) InsetCitation::~InsetCitation() { 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] - buffer().removeBiblioTempFiles(); + /* We do not use buffer() because Coverity believes that this + * may throw an exception. Actually this code path is not + * taken when buffer_ == 0 */ + buffer_->removeBiblioTempFiles(); } @@ -460,7 +460,7 @@ void InsetCitation::addToToc(DocIterator const & cpit, bool output_active, UpdateType, TocBackend & backend) const { // NOTE - // BiblioInfo::collectCitedEntries() uses the TOC to collect the citations + // BiblioInfo::collectCitedEntries() uses the TOC to collect the citations // from the document. It is used indirectly, via BiblioInfo::makeCitationLables, // by both XHTML and plaintext output. So, if we change what goes into the TOC, // then we will also need to change that routine.