ENH: code adjustments for updated NullObject
- can now safely use labelList::null() instead of emptyLabelList for return values. No special treatment required for lists. Possible replacements: if (notNull(list) && list.size()) -> if (list.size()) if (isNull(list) || list.empty()) -> if (list.empty()) The receiver may still wish to handle differently to distinguish between a null list and an empty list, but no additional special protection is required when obtaining sizes, traversing, outputting etc.
Showing
- applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFieldMapper.H 5 additions, 15 deletions...redistributePar/distributedUnallocatedDirectFieldMapper.H
- applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFvPatchFieldMapper.H 5 additions, 15 deletions...ibutePar/distributedUnallocatedDirectFvPatchFieldMapper.H
- src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C 2 additions, 2 deletions...AM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C
- src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C 2 additions, 2 deletionssrc/OpenFOAM/algorithms/indexedOctree/indexedOctree.C
- src/OpenFOAM/containers/Lists/List/List.H 1 addition, 0 deletionssrc/OpenFOAM/containers/Lists/List/List.H
- src/OpenFOAM/fields/Fields/Field/directFieldMapper.H 5 additions, 10 deletionssrc/OpenFOAM/fields/Fields/Field/directFieldMapper.H
- src/OpenFOAM/fields/pointPatchFields/pointPatchField/directPointPatchFieldMapper.H 5 additions, 10 deletions...PatchFields/pointPatchField/directPointPatchFieldMapper.H
- src/OpenFOAM/meshes/pointMesh/pointMeshMapper/pointPatchMapper.C 1 addition, 0 deletions...nFOAM/meshes/pointMesh/pointMeshMapper/pointPatchMapper.C
- src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshDataTemplates.C 3 additions, 3 deletions.../meshes/polyMesh/globalMeshData/globalMeshDataTemplates.C
- src/finiteVolume/fields/fvPatchFields/fvPatchField/directFvPatchFieldMapper.H 5 additions, 10 deletions...lds/fvPatchFields/fvPatchField/directFvPatchFieldMapper.H
- src/finiteVolume/fvMesh/singleCellFvMesh/singleCellFvMesh.H 3 additions, 3 deletionssrc/finiteVolume/fvMesh/singleCellFvMesh/singleCellFvMesh.H
- src/sampling/meshToMesh/distributedWeightedFvPatchFieldMapper.H 5 additions, 5 deletions...mpling/meshToMesh/distributedWeightedFvPatchFieldMapper.H
- src/sampling/sampledSurface/distanceSurface/sampledDistanceSurface.H 3 additions, 3 deletions...g/sampledSurface/distanceSurface/sampledDistanceSurface.H
- src/sampling/sampledSurface/isoSurface/sampledIsoSurface.H 3 additions, 3 deletionssrc/sampling/sampledSurface/isoSurface/sampledIsoSurface.H
- src/sampling/sampledSurface/isoSurface/sampledIsoSurfaceCell.H 3 additions, 3 deletions...ampling/sampledSurface/isoSurface/sampledIsoSurfaceCell.H
- src/sampling/sampledSurface/isoSurface/sampledIsoSurfaceTopo.H 3 additions, 3 deletions...ampling/sampledSurface/isoSurface/sampledIsoSurfaceTopo.H
- src/sampling/sampledSurface/sampledCuttingPlane/sampledCuttingPlane.H 3 additions, 3 deletions.../sampledSurface/sampledCuttingPlane/sampledCuttingPlane.H
- src/sampling/sampledSurface/sampledCuttingSurface/sampledCuttingSurface.H 3 additions, 3 deletions...pledSurface/sampledCuttingSurface/sampledCuttingSurface.H
- src/sampling/sampledSurface/sampledNone/sampledNone.H 3 additions, 3 deletionssrc/sampling/sampledSurface/sampledNone/sampledNone.H
- src/sampling/sampledSurface/sampledPatch/sampledPatch.C 3 additions, 3 deletionssrc/sampling/sampledSurface/sampledPatch/sampledPatch.C
Please register or sign in to comment