[Bf-blender-cvs] [188de4bc314] master: BLI: initialize MutableSpan in default constructor

Jacques Lucke noreply at git.blender.org
Wed Sep 22 19:55:52 CEST 2021


Commit: 188de4bc31427c4883b87beea83126b42a628798
Author: Jacques Lucke
Date:   Wed Sep 22 19:44:58 2021 +0200
Branches: master
https://developer.blender.org/rB188de4bc31427c4883b87beea83126b42a628798

BLI: initialize MutableSpan in default constructor

===================================================================

M	source/blender/blenlib/BLI_span.hh

===================================================================

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;



More information about the Bf-blender-cvs mailing list