]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCitation.cpp
Avoid using buffer() which might throw an exception
[features.git] / src / insets / InsetCitation.cpp
index fe752246f53460ba85c554d9113ff5db0a93c3fa..1b3c482d9b40c7330a36f045b508c55399c581d2 100644 (file)
@@ -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();
 }