mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use consistent naming when toggling exception throwing on/off
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2016 OpenFOAM Foundation
|
||||
Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||
Copyright (C) 2018-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -233,7 +233,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
fields.updateSelection();
|
||||
|
||||
const bool throwingIOErr = FatalIOError.throwExceptions();
|
||||
const bool oldThrowingIOErr = FatalIOError.throwing(true);
|
||||
|
||||
try
|
||||
{
|
||||
@ -258,7 +258,7 @@ int main(int argc, char *argv[])
|
||||
Info<< endl;
|
||||
|
||||
// Restore previous exception throwing state
|
||||
FatalIOError.throwExceptions(throwingIOErr);
|
||||
FatalIOError.throwing(oldThrowingIOErr);
|
||||
}
|
||||
|
||||
Info<< "End\n" << endl;
|
||||
|
||||
Reference in New Issue
Block a user