mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: PtrList: append function changed to take non-const pointer
This commit is contained in:
@ -190,7 +190,7 @@ public:
|
||||
void clear();
|
||||
|
||||
//- Append an element at the end of the list
|
||||
inline void append(const T*);
|
||||
inline void append(T*);
|
||||
inline void append(const autoPtr<T>&);
|
||||
inline void append(const tmp<T>&);
|
||||
|
||||
|
||||
@ -80,7 +80,7 @@ inline void Foam::PtrList<T>::resize(const label newSize)
|
||||
|
||||
|
||||
template<class T>
|
||||
inline void Foam::PtrList<T>::append(const T* ptr)
|
||||
inline void Foam::PtrList<T>::append(T* ptr)
|
||||
{
|
||||
label sz = size();
|
||||
this->setSize(sz+1);
|
||||
|
||||
Reference in New Issue
Block a user