ENH: use consistent naming when toggling exception throwing on/off

This commit is contained in:
Mark Olesen
2021-11-01 13:37:11 +01:00
parent fddf8a8832
commit 851be8ea33
26 changed files with 119 additions and 111 deletions

View File

@ -408,8 +408,8 @@ int main(int argc, char *argv[])
autoPtr<Time> runTimePtr;
autoPtr<lumpedPointIOMovement> movementPtr;
const bool throwingIOError = FatalIOError.throwExceptions();
const bool throwingError = FatalError.throwExceptions();
const bool oldThrowingIO = FatalIOError.throwing(true);
const bool oldThrowingEx = FatalError.throwing(true);
try
{
@ -426,8 +426,8 @@ int main(int argc, char *argv[])
}
Info<< nl << endl;
FatalError.throwExceptions(throwingError);
FatalIOError.throwExceptions(throwingIOError);
FatalError.throwing(oldThrowingEx);
FatalIOError.throwing(oldThrowingIO);
if (!movementPtr)
{