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

@ -120,7 +120,7 @@ int main(int argc, char *argv[])
labelledTri l1{ 1, 2, 3, 10, 24 };
Info<< "labelled:" << l1 << nl;
}
catch (Foam::error& err)
catch (const Foam::error& err)
{
WarningInFunction
<< "Caught FatalError " << err << nl << endl;