mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
dd9b7d3d7e
commit
f3670521cd
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user