Commit 3438e384 authored by laurence's avatar laurence
Browse files

BUG: PtrList: append function changed to take non-const pointer

parent 144a2b23
......@@ -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);
......
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