]> git.lyx.org Git - features.git/commitdiff
Rethrow excepction instead of a copy
authorGeorg Baum <baum@lyx.org>
Mon, 6 Jun 2016 19:52:52 +0000 (21:52 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 6 Jun 2016 19:52:52 +0000 (21:52 +0200)
This fixes the cppcheck warning "(style) Throwing a copy of the caught
exception instead of rethrowing the original exception."

src/insets/InsetBibtex.cpp

index eb0cf8ff922ba0a86eb013ac165b6eeb1e2aae40..ca7cdbaa239f1614292992c6f91f0edccd496b8e 100644 (file)
@@ -103,7 +103,7 @@ void InsetBibtex::doDispatch(Cursor & cur, FuncRequest & cmd)
                                Alert::warning(message.title_, message.details_);
                                cur.noScreenUpdate();
                        } else
-                               throw message;
+                               throw;
                        break;
                }