]> git.lyx.org Git - features.git/commitdiff
Followup to e10db6c7: handle InsetCitation too.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 31 Mar 2017 09:23:28 +0000 (11:23 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 31 Mar 2017 09:23:28 +0000 (11:23 +0200)
src/insets/InsetBibitem.cpp
src/insets/InsetBibtex.cpp
src/insets/InsetCitation.cpp
src/insets/InsetInclude.cpp

index 1c8bc786db6ddb9130151fb96dcbbfe7c8ef988f..4ccfea8db984268c8d07496b3fafe81311918b81 100644 (file)
@@ -68,7 +68,7 @@ InsetBibitem::InsetBibitem(Buffer * buf, InsetCommandParams const & p)
 InsetBibitem::~InsetBibitem()
 {
        if (isBufferLoaded())
-               /* Coverity believs that this may throw an exception, but
+               /* Coverity believes that this may throw an exception, but
                 * actually this code path is not taken when buffer_ == 0 */
                // coverity[exn_spec_violation]
                buffer().invalidateBibinfoCache();
index 63ae8657f0bf9371f3fb1505f5e3564e6e052006..1b0143d8b85097cda1b331be9c0ee6747a89f73d 100644 (file)
@@ -68,7 +68,7 @@ InsetBibtex::InsetBibtex(Buffer * buf, InsetCommandParams const & p)
 InsetBibtex::~InsetBibtex()
 {
        if (isBufferLoaded()) {
-               /* Coverity believs that this may throw an exception, but
+               /* Coverity believes that this may throw an exception, but
                 * actually this code path is not taken when buffer_ == 0 */
                // coverity[exn_spec_violation]
                buffer().invalidateBibfileCache();
index 12044f50c1e17397b0a18f717cd6fc665d1b498c..50be1f5c7cdb5a059aa8a0ce4ea2da98a0439121 100644 (file)
@@ -55,6 +55,9 @@ 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[exn_spec_violation]
                buffer().removeBiblioTempFiles();
 }
 
index 1c80afffd7ba204289339f8bc4cc0d1864f52c1e..0d67f9dbd50f0f14e0917b960027925b97223062 100644 (file)
@@ -198,7 +198,7 @@ InsetInclude::InsetInclude(InsetInclude const & other)
 InsetInclude::~InsetInclude()
 {
        if (isBufferLoaded())
-               /* Coverity believs that this may throw an exception, but
+               /* Coverity believes that this may throw an exception, but
                 * actually this code path is not taken when buffer_ == 0 */
                // coverity[exn_spec_violation]
                buffer().invalidateBibfileCache();