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:
@ -201,7 +201,7 @@ int main(int argc, char *argv[])
|
||||
Info<<"Random position(10,5): "
|
||||
<< Random().position<label>(10, 5) << endl;
|
||||
}
|
||||
catch (Foam::error& err)
|
||||
catch (const Foam::error& err)
|
||||
{
|
||||
Info<< "Caught FatalError " << err << nl << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user