mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Use new last() method for List-type classes
- use first() method in some places as well where it helps clarity - there are a few remaining cases: git grep 'size()-1]'
This commit is contained in:
@ -242,8 +242,7 @@ void Foam::surfaceIntersection::storeIntersection
|
||||
|
||||
// Check whether perhaps degenerate
|
||||
const point& prevHit = allCutPoints[*iter];
|
||||
|
||||
const point& thisHit = allCutPoints[allCutPoints.size()-1];
|
||||
const point& thisHit = allCutPoints.last();
|
||||
|
||||
if (mag(prevHit - thisHit) < SMALL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user