[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/master] Followup to e10db6c7: handle InsetCitation too.
From:       Jean-Marc Lasgouttes <lasgouttes () lyx ! org>
Date:       2017-03-31 9:24:30
Message-ID: 20170331092430.F1ED1280259 () lyx ! lyx ! org
[Download RAW message or body]

commit 08561eba3f61204aef7d83940c13712e5b872d1a
Author: Jean-Marc Lasgouttes <lasgouttes@lyx.org>
Date:   Fri Mar 31 11:23:28 2017 +0200

    Followup to e10db6c7: handle InsetCitation too.
---
 src/insets/InsetBibitem.cpp  |    2 +-
 src/insets/InsetBibtex.cpp   |    2 +-
 src/insets/InsetCitation.cpp |    3 +++
 src/insets/InsetInclude.cpp  |    2 +-
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp
index 1c8bc78..4ccfea8 100644
--- a/src/insets/InsetBibitem.cpp
+++ b/src/insets/InsetBibitem.cpp
@@ -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();
diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp
index 63ae865..1b0143d 100644
--- a/src/insets/InsetBibtex.cpp
+++ b/src/insets/InsetBibtex.cpp
@@ -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();
diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp
index 12044f5..50be1f5 100644
--- a/src/insets/InsetCitation.cpp
+++ b/src/insets/InsetCitation.cpp
@@ -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();
 }
 
diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index 1c80aff..0d67f9d 100644
--- a/src/insets/InsetInclude.cpp
+++ b/src/insets/InsetInclude.cpp
@@ -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();

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic