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

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