From 04d7288237ddd145611d81396a91c4cf07eefcf5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 2 Oct 2017 10:28:21 -0600 Subject: [PATCH] Catch exception by reference. Copying is inefficient and, in this case, clearly unnecessary. --- source/base/parameter_acceptor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/base/parameter_acceptor.cc b/source/base/parameter_acceptor.cc index 632f272a18..31441f92d6 100644 --- a/source/base/parameter_acceptor.cc +++ b/source/base/parameter_acceptor.cc @@ -64,7 +64,7 @@ ParameterAcceptor::initialize(const std::string &filename, { prm.parse_input(filename); } - catch (dealii::PathSearch::ExcFileNotFound) + catch (const dealii::PathSearch::ExcFileNotFound &) { std::ofstream out(filename); Assert(out, ExcIO()); -- 2.39.5