BUG: PtrList: append function changed to take non-const pointer
This commit is contained in:
parent
144a2b232e
commit
3438e38464
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user