Skip to content
Snippets Groups Projects
Commit 9b7521ae authored by Henry Weller's avatar Henry Weller
Browse files

List: Remove the inherited UList::shallowCopy to avoid accidental misuse

parent 77b03e2e
No related branches found
No related tags found
No related merge requests found
...@@ -208,6 +208,11 @@ public: ...@@ -208,6 +208,11 @@ public:
//- Return subscript-checked element of UList. //- Return subscript-checked element of UList.
inline T& newElmt(const label); inline T& newElmt(const label);
//- Disallow implicit shallowCopy
void shallowCopy(const UList<T>&) = delete;
// Member operators // Member operators
//- Assignment from UList operator. Takes linear time. //- Assignment from UList operator. Takes linear time.
......
...@@ -158,7 +158,7 @@ slicedBoundaryField ...@@ -158,7 +158,7 @@ slicedBoundaryField
DimensionedField<Type, GeoMesh>::null() DimensionedField<Type, GeoMesh>::null()
) )
); );
bf[patchi].shallowCopy(bField[patchi]); bf[patchi].UList<Type>::shallowCopy(bField[patchi]);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment