]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Catch exception by reference. 5180/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 2 Oct 2017 16:28:21 +0000 (10:28 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 2 Oct 2017 16:28:21 +0000 (10:28 -0600)
Copying is inefficient and, in this case, clearly unnecessary.

source/base/parameter_acceptor.cc

index 632f272a185626ff41074493c6c2a240ae0df791..31441f92d6be28b29941d9965b5cffa5ae695f55 100644 (file)
@@ -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());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.