From 03395b78711de7092db15fce653abdbe921d4b54 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 6 Jun 2016 21:52:52 +0200 Subject: [PATCH] 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." --- src/insets/InsetBibtex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index eb0cf8ff92..ca7cdbaa23 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; } -- 2.39.2