mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use const reference for caught exceptions
This commit is contained in:
@ -108,11 +108,11 @@ void doTest(const dictionary& dict)
|
||||
|
||||
basicTests(cs1);
|
||||
}
|
||||
catch (Foam::IOerror& err)
|
||||
catch (const Foam::IOerror& err)
|
||||
{
|
||||
Info<< "Caught FatalIOError " << err << nl << endl;
|
||||
}
|
||||
catch (Foam::error& err)
|
||||
catch (const Foam::error& err)
|
||||
{
|
||||
Info<< "Caught FatalError " << err << nl << endl;
|
||||
}
|
||||
@ -136,11 +136,11 @@ void doTest(const objectRegistry& obr, const dictionary& dict)
|
||||
|
||||
basicTests(cs1);
|
||||
}
|
||||
catch (Foam::IOerror& err)
|
||||
catch (const Foam::IOerror& err)
|
||||
{
|
||||
Info<< "Caught FatalIOError " << err << nl << endl;
|
||||
}
|
||||
catch (Foam::error& err)
|
||||
catch (const Foam::error& err)
|
||||
{
|
||||
Info<< "Caught FatalError " << err << nl << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user