Commit 9b7521ae authored by Henry Weller's avatar Henry Weller
Browse files

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

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