diff options
author | Jacques Lucke <jacques@blender.org> | 2021-09-22 20:44:58 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-09-22 20:44:58 +0300 |
commit | 188de4bc31427c4883b87beea83126b42a628798 (patch) | |
tree | dcb2b339f757af891771329bb7f46d0a19078e58 /source | |
parent | bd1c4a781f6b7dbca16e76bd8b475bea26153243 (diff) |
BLI: initialize MutableSpan in default constructor
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_span.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_span.hh b/source/blender/blenlib/BLI_span.hh index 5adb47ba0b0..29098fd79ce 100644 --- a/source/blender/blenlib/BLI_span.hh +++ b/source/blender/blenlib/BLI_span.hh @@ -478,8 +478,8 @@ template<typename T> class MutableSpan { using size_type = int64_t; protected: - T *data_; - int64_t size_; + T *data_ = nullptr; + int64_t size_ = 0; public: constexpr MutableSpan() = default; |