From: ddzama Date: Thu, 31 Mar 2022 04:26:39 +0000 (+0300) Subject: 0032910: Coding Rules - fix uninitialized class fields in constructor initialization... X-Git-Tag: V7_7_0_beta~133 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=878ea8cd2b3b7c3b3b0c8a48a0649af85729968c;p=occt.git 0032910: Coding Rules - fix uninitialized class fields in constructor initialization block reported by VS2019/C++20 Microsoft Visual Studio Professional 2019 Version 16.11.11 std=c++20 Get rid of warnings about uninitialized class fields in constructor initialization block. --- diff --git a/src/NCollection/NCollection_BaseVector.hxx b/src/NCollection/NCollection_BaseVector.hxx index db68b8613d..7c8941818a 100755 --- a/src/NCollection/NCollection_BaseVector.hxx +++ b/src/NCollection/NCollection_BaseVector.hxx @@ -69,7 +69,8 @@ protected: { protected: Iterator() - : myICurBlock (0), + : myVector (nullptr), + myICurBlock (0), myIEndBlock (0), myCurIndex (0), myEndIndex (0) {} diff --git a/src/SelectMgr/SelectMgr_BVHThreadPool.hxx b/src/SelectMgr/SelectMgr_BVHThreadPool.hxx index 84d8ab3765..3dd7afd0ad 100644 --- a/src/SelectMgr/SelectMgr_BVHThreadPool.hxx +++ b/src/SelectMgr/SelectMgr_BVHThreadPool.hxx @@ -42,6 +42,8 @@ public: BVHThread() : OSD_Thread(), + myPool(nullptr), + myMutex(), myToCatchFpe (Standard_False) {