]> OCCT Git - occt.git/commitdiff
0033552: Foundation Classes - NCollection_BaseMap move ctor clears wrong pointer
authorXu Zhongxing <xuzhongxing@iscas.ac.cn>
Wed, 13 Dec 2023 06:41:18 +0000 (14:41 +0800)
committervglukhik <vglukhik@opencascade.com>
Fri, 15 Dec 2023 19:51:57 +0000 (19:51 +0000)
Replaced correct class member to clear

src/NCollection/NCollection_BaseMap.hxx

index 2e6b7f4471dbe9cf4a52ba130c5de1bb93475511..07e530db08f362495ac023d1228dea20a38b885c 100644 (file)
@@ -178,7 +178,7 @@ public:
     isDouble(theOther.isDouble)
   {
     theOther.myData1 = nullptr;
-    theOther.myData1 = nullptr;
+    theOther.myData2 = nullptr;
     theOther.mySize = 0;
     theOther.myNbBuckets = 0;
   }