From 878ea8cd2b3b7c3b3b0c8a48a0649af85729968c Mon Sep 17 00:00:00 2001 From: ddzama Date: Thu, 31 Mar 2022 07:26:39 +0300 Subject: [PATCH] 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. --- src/NCollection/NCollection_BaseVector.hxx | 3 ++- src/SelectMgr/SelectMgr_BVHThreadPool.hxx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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) {