From fcd8d71ef91c061d1043c38978e23b28467981bd Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 29 Nov 2016 09:06:30 +0100 Subject: [PATCH] STYLE: ensightCells, ensightFaces sub-lists are always allocated - remove remnant nullptr check --- src/fileFormats/ensight/part/ensightCells.C | 5 +-- src/fileFormats/ensight/part/ensightFaces.C | 34 ++++++++------------- 2 files changed, 13 insertions(+), 26 deletions(-) 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