commit 03395b78711de7092db15fce653abdbe921d4b54
Author: Georg Baum <b...@lyx.org>
Date:   Mon Jun 6 21:52:52 2016 +0200

    Rethrow excepction instead of a copy
    
    This fixes the cppcheck warning "(style) Throwing a copy of the caught
    exception instead of rethrowing the original exception."

diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp
index eb0cf8f..ca7cdba 100644
--- a/src/insets/InsetBibtex.cpp
+++ b/src/insets/InsetBibtex.cpp
@@ -103,7 +103,7 @@ void InsetBibtex::doDispatch(Cursor & cur, FuncRequest & 
cmd)
                                Alert::warning(message.title_, 
message.details_);
                                cur.noScreenUpdate();
                        } else
-                               throw message;
+                               throw;
                        break;
                }
 

Reply via email to