STYLE: use const reference for caught exceptions

This commit is contained in:
Mark Olesen
2019-01-23 09:03:06 +01:00
parent a50c446853
commit a5cc0ffcad
20 changed files with 54 additions and 55 deletions

View File

@ -226,9 +226,9 @@ int main(int argc, char *argv[])
// Report to output (avoid overwriting values from simulation)
profiling::print(Info);
}
catch (Foam::IOerror& err)
catch (const Foam::IOerror& err)
{
Warning<< err << endl;
Warning << err << endl;
}
Info<< endl;