diff options
author | David Robillard <d@drobilla.net> | 2020-07-17 19:31:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-17 19:59:47 +0200 |
commit | 9788bd372ebd949d14f8656b3ce171202f4d7e8b (patch) | |
tree | 7234040718a58e53edb0441b3890f86402eca8fb /raul/Array.hpp | |
parent | 38985664a60f2caf1576c32f01866b09183136cd (diff) | |
download | raul-9788bd372ebd949d14f8656b3ce171202f4d7e8b.tar.gz raul-9788bd372ebd949d14f8656b3ce171202f4d7e8b.tar.bz2 raul-9788bd372ebd949d14f8656b3ce171202f4d7e8b.zip |
Add missing initializations
Diffstat (limited to 'raul/Array.hpp')
-rw-r--r-- | raul/Array.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/raul/Array.hpp b/raul/Array.hpp index 2c338e4..0675701 100644 --- a/raul/Array.hpp +++ b/raul/Array.hpp @@ -35,13 +35,15 @@ class Array : public Maid::Disposable { public: explicit Array(size_t size = 0) - : _size(size) + : Maid::Disposable() + , _size(size) , _elems(size ? new T[size] : nullptr) { } Array(size_t size, T initial_value) - : _size(size) + : Maid::Disposable() + , _size(size) , _elems(size ? new T[size] : nullptr) { if (size > 0) { @@ -52,7 +54,8 @@ public: } Array(const Array<T>& array) - : _size(array._size) + : Maid::Disposable() + , _size(array._size) , _elems(_size ? new T[_size] : nullptr) { for (size_t i = 0; i < _size; ++i) { |