diff --git a/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFieldMapper.H b/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFieldMapper.H index aceffd8810..e534705a2b 100644 --- a/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFieldMapper.H +++ b/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFieldMapper.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | + \\ / A nd | Copyright (C) 2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2015 OpenFOAM Foundation @@ -66,22 +66,12 @@ public: : directAddressing_(directAddressing), distMap_(distMap), - hasUnmapped_(false) - { - if - ( - notNull(directAddressing_) - && directAddressing_.size() - && min(directAddressing_) < 0 - ) - { - hasUnmapped_ = true; - } - } + hasUnmapped_(directAddressing_.size() && min(directAddressing_) < 0) + {} + //- Destructor - virtual ~distributedUnallocatedDirectFieldMapper() - {} + virtual ~distributedUnallocatedDirectFieldMapper() = default; // Member Functions diff --git a/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFvPatchFieldMapper.H b/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFvPatchFieldMapper.H index 90baab780d..7d38e871ae 100644 --- a/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFvPatchFieldMapper.H +++ b/applications/utilities/parallelProcessing/redistributePar/distributedUnallocatedDirectFvPatchFieldMapper.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | + \\ / A nd | Copyright (C) 2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2015 OpenFOAM Foundation @@ -68,22 +68,12 @@ public: : directAddressing_(directAddressing), distMap_(distMap), - hasUnmapped_(false) - { - if - ( - notNull(directAddressing_) - && directAddressing_.size() - && min(directAddressing_) < 0 - ) - { - hasUnmapped_ = true; - } - } + hasUnmapped_(directAddressing_.size() && min(directAddressing_) < 0) + {} + //- Destructor - virtual ~distributedUnallocatedDirectFvPatchFieldMapper() - {} + virtual ~distributedUnallocatedDirectFvPatchFieldMapper() = default; // Member Functions diff --git a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C index f58689713f..02c441a933 100644 --- a/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C +++ b/src/OpenFOAM/algorithms/dynamicIndexedOctree/dynamicIndexedOctree.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | + \\ / A nd | Copyright (C) 2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2016 OpenFOAM Foundation @@ -2400,7 +2400,7 @@ const Foam::labelList& Foam::dynamicIndexedOctree::findIndices return *(contents_[getContent(contentIndex)]); } - return Foam::emptyLabelList; + return labelList::null(); } diff --git a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C index ff6bfa8e74..f4a23ff5b3 100644 --- a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C +++ b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C @@ -2662,7 +2662,7 @@ const Foam::labelList& Foam::indexedOctree::findIndices { if (nodes_.empty()) { - return Foam::emptyLabelList; + return labelList::null(); } labelBits index = findNode(0, sample); @@ -2677,7 +2677,7 @@ const Foam::labelList& Foam::indexedOctree::findIndices return contents_[getContent(contentIndex)]; } - return Foam::emptyLabelList; + return labelList::null(); } diff --git a/src/OpenFOAM/containers/Lists/List/List.H b/src/OpenFOAM/containers/Lists/List/List.H index f832bec325..9615ef1ee7 100644 --- a/src/OpenFOAM/containers/Lists/List/List.H +++ b/src/OpenFOAM/containers/Lists/List/List.H @@ -76,6 +76,7 @@ typedef List charList; typedef List