STYLE: use std:: qualifier on ::abort, ::exit

- consistent with use of <cstdlib> and makes for a stronger distinct
  from Foam::abort etc.
This commit is contained in:
Mark Olesen
2019-04-03 20:24:30 +02:00
committed by Andrew Heather
parent dd9b7d3d7e
commit f3670521cd
17 changed files with 29 additions and 28 deletions

View File

@ -153,7 +153,7 @@ void Foam::IOerror::SafeFatalIOError
<< " in file " << sourceFileName
<< " at line " << sourceFileLineNumber << '.'
<< std::endl;
::exit(1);
std::exit(1);
}
}
@ -210,7 +210,7 @@ void Foam::IOerror::exit(const int)
{
Perr<< endl << *this << endl
<< "\nFOAM exiting\n" << endl;
::exit(1);
std::exit(1);
}
}
}
@ -229,7 +229,7 @@ void Foam::IOerror::abort()
Perr<< endl << *this << endl
<< "\nFOAM aborting (FOAM_ABORT set)\n" << endl;
printStack(Perr);
::abort();
std::abort();
}
if (Pstream::parRun())
@ -256,7 +256,7 @@ void Foam::IOerror::abort()
Perr<< endl << *this << endl
<< "\nFOAM aborting\n" << endl;
printStack(Perr);
::abort();
std::abort();
}
}
}