mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use List::found() instead of deprecated findIndex function
This commit is contained in:
@ -307,14 +307,15 @@ void Foam::UPstream::exit(int errnum)
|
||||
}
|
||||
|
||||
|
||||
if (PstreamGlobals::outstandingRequests_.size())
|
||||
// Warn about any outstanding requests
|
||||
{
|
||||
label nOutstanding = 0;
|
||||
forAll(PstreamGlobals::outstandingRequests_, i)
|
||||
|
||||
forAll(PstreamGlobals::outstandingRequests_, requestID)
|
||||
{
|
||||
if (findIndex(PstreamGlobals::freedRequests_, i) == -1)
|
||||
if (!PstreamGlobals::freedRequests_.found(requestID))
|
||||
{
|
||||
nOutstanding++;
|
||||
++nOutstanding;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user