From: Wolfgang Bangerth Date: Mon, 2 Oct 2017 16:28:21 +0000 (-0600) Subject: Catch exception by reference. X-Git-Tag: v9.0.0-rc1~1010^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5180%2Fhead;p=dealii.git Catch exception by reference. Copying is inefficient and, in this case, clearly unnecessary. --- 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());