STYLE: use UPtrList::test() instead of separate bounds checking

This commit is contained in:
Mark Olesen
2023-07-05 20:40:18 +02:00
parent 65cddb6120
commit 8562f4d7a4
5 changed files with 36 additions and 35 deletions

View File

@ -128,7 +128,7 @@ Foam::label Foam::functionObjects::vtkWrite::writeVolFieldsImpl
label writeri = 0;
for (vtk::patchWriter& writer : patchWriters)
{
if (writeri < patchInterps.size() && patchInterps.set(writeri))
if (patchInterps.test(writeri))
{
ok = true;
writer.write(field, patchInterps[writeri]);