mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use X.last() method instead of X[X.size()-1]
This commit is contained in:
@ -260,7 +260,7 @@ cellShape create3DCellShape
|
||||
meshFaceLabels[i - 1] = meshFaceLabels[i];
|
||||
}
|
||||
|
||||
meshFaceLabels[meshFaceLabels.size() - 1] = firstLabel;
|
||||
meshFaceLabels.last() = firstLabel;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -80,7 +80,7 @@ Foam::label Foam::mergePolyMesh::patchIndex(const polyPatch& p)
|
||||
<< pName << " in mesh " << caseName
|
||||
<< " already exists, but patch types "
|
||||
<< " do not match.\nCreating a composite name as "
|
||||
<< patchNames_[patchNames_.size() - 1] << endl;
|
||||
<< patchNames_.last() << endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user