Skip to content
Snippets Groups Projects
Commit 5a85cab9 authored by mattijs's avatar mattijs
Browse files

ENH: DynamicList: null constructor does not allocate

parent 90abd781
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,8 @@ License
template<class T, unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv>
inline Foam::DynamicList<T, SizeInc, SizeMult, SizeDiv>::DynamicList()
:
List<T>(SizeInc),
capacity_(SizeInc)
List<T>(0),
capacity_(0)
{
List<T>::size(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment