List: Remove the inherited UList::shallowCopy to avoid accidental misuse
This commit is contained in:
parent
fda9aadb3a
commit
9aaf17d45d
2 changed files with 6 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue