Skip to content
Snippets Groups Projects
Commit 03c27d2b authored by Mark Olesen's avatar Mark Olesen
Browse files

eliminated label& List::size() completely

parent 8207cf0e
Branches
Tags
No related merge requests found
...@@ -152,9 +152,6 @@ public: ...@@ -152,9 +152,6 @@ public:
//- Return the number of elements in the UList. //- Return the number of elements in the UList.
inline label size() const; inline label size() const;
//- Override size to be inconsistent with allocated storage.
// Use with care.
inline label& size();
// Edit // Edit
......
...@@ -65,14 +65,6 @@ inline Foam::label Foam::List<T>::size() const ...@@ -65,14 +65,6 @@ inline Foam::label Foam::List<T>::size() const
return UList<T>::size_; return UList<T>::size_;
} }
template<class T>
inline Foam::label& Foam::List<T>::size()
{
return UList<T>::size_;
}
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
template<class T> template<class T>
......
...@@ -167,7 +167,7 @@ const labelList& primitiveMesh::pointCells ...@@ -167,7 +167,7 @@ const labelList& primitiveMesh::pointCells
} }
} }
storage.size() = n; storage.setSize(n);
return storage; return storage;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment