diff --git a/src/fileFormats/ensight/part/ensightCells.C b/src/fileFormats/ensight/part/ensightCells.C index 8db55a927a..141df44053 100644 --- a/src/fileFormats/ensight/part/ensightCells.C +++ b/src/fileFormats/ensight/part/ensightCells.C @@ -191,10 +191,7 @@ void Foam::ensightCells::sort() { forAll(lists_, typeI) { - if (lists_[typeI]) - { - Foam::sort(*(lists_[typeI])); - } + Foam::sort(*(lists_[typeI])); } } diff --git a/src/fileFormats/ensight/part/ensightFaces.C b/src/fileFormats/ensight/part/ensightFaces.C index e1e67153fd..e8085b1fcb 100644 --- a/src/fileFormats/ensight/part/ensightFaces.C +++ b/src/fileFormats/ensight/part/ensightFaces.C @@ -233,28 +233,25 @@ void Foam::ensightFaces::sort() { if (flipMap_.size() == address_.size()) { - // sort flip too + // sort flip map too labelList order; label start = 0; forAll(lists_, typeI) { - if (lists_[typeI]) + SubList