STYLE: use single-parameter SubList where applicable (reduces clutter)

This commit is contained in:
Mark Olesen
2022-01-19 10:14:21 +01:00
parent 6a87dbcbcd
commit 61aef196ed
8 changed files with 27 additions and 34 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2016 OpenFOAM Foundation
Copyright (C) 2020-2021 OpenCFD Ltd.
Copyright (C) 2020-2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -281,9 +281,7 @@ Foam::Ostream& Foam::OBJstream::write
const bool lines
)
{
SubList<face> allFcs(faces, faces.size());
primitivePatch pp(allFcs, points);
primitivePatch pp(SubList<face>(faces), points);
const pointField& localPoints = pp.localPoints();
const faceList& localFaces = pp.localFaces();