eliminated label& List::size() completely

This commit is contained in:
Mark Olesen
2008-10-10 14:52:23 +02:00
parent 8207cf0e47
commit 03c27d2b60
3 changed files with 1 additions and 12 deletions

View File

@ -152,9 +152,6 @@ public:
//- Return the number of elements in the UList.
inline label size() const;
//- Override size to be inconsistent with allocated storage.
// Use with care.
inline label& size();
// Edit

View File

@ -65,14 +65,6 @@ inline Foam::label Foam::List<T>::size() const
return UList<T>::size_;
}
template<class T>
inline Foam::label& Foam::List<T>::size()
{
return UList<T>::size_;
}
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class T>

View File

@ -167,7 +167,7 @@ const labelList& primitiveMesh::pointCells
}
}
storage.size() = n;
storage.setSize(n);
return storage;
}