mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
eliminated label& List::size() completely
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -167,7 +167,7 @@ const labelList& primitiveMesh::pointCells
|
||||
}
|
||||
}
|
||||
|
||||
storage.size() = n;
|
||||
storage.setSize(n);
|
||||
|
||||
return storage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user