Commit 5a85cab9 authored by mattijs's avatar mattijs
Browse files

ENH: DynamicList: null constructor does not allocate

parent 90abd781
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment