STYLE: use X.last() method instead of X[X.size()-1]

This commit is contained in:
Mark Olesen
2010-12-07 09:56:52 +01:00
parent f367ee2ece
commit a2b73a1c6d
12 changed files with 15 additions and 17 deletions

View File

@ -260,7 +260,7 @@ cellShape create3DCellShape
meshFaceLabels[i - 1] = meshFaceLabels[i];
}
meshFaceLabels[meshFaceLabels.size() - 1] = firstLabel;
meshFaceLabels.last() = firstLabel;
}
}

View File

@ -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
{