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

This commit is contained in:
laurence 2013-07-04 11:47:29 +01:00
parent 144a2b232e
commit 3438e38464
2 changed files with 2 additions and 2 deletions

View File

@ -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>&);

View File

@ -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);