]> OCCT Git - occt.git/commitdiff
0032357: Coding Rules - eliminate GCC11 compiler warnings -Wignored-qualifiers
authorkgv <kgv@opencascade.com>
Tue, 11 May 2021 16:56:36 +0000 (19:56 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 12 May 2021 16:59:21 +0000 (19:59 +0300)
src/TColStd/TColStd_PackedMapOfInteger.cxx
src/TColStd/TColStd_PackedMapOfInteger.hxx

index 7ac90c53b4140e41c2fab2c1eb7c0b67a19cf57f..3903c1c3ab424995dbfcb9e6a8295424752c5de5 100644 (file)
@@ -23,8 +23,8 @@
 //function : TColStd_intMapNode_findNext
 //purpose  :
 //=======================================================================
-Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findNext (const Standard_Address theNode,
-                                                                          unsigned int&          theMask)
+Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findNext (const TColStd_intMapNode* theNode,
+                                                                          unsigned int& theMask)
 {
   const TColStd_intMapNode* aNode = reinterpret_cast<const TColStd_intMapNode*> (theNode);
   unsigned int val = aNode->Data() & theMask;
@@ -66,8 +66,8 @@ Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findNext (const
 //function : TColStd_intMapNode_findPrev
 //purpose  :
 //=======================================================================
-Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findPrev (const Standard_Address theNode,
-                                                                          unsigned int&          theMask)
+Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findPrev (const TColStd_intMapNode* theNode,
+                                                                          unsigned int& theMask)
 {
   const TColStd_intMapNode* aNode = reinterpret_cast<const TColStd_intMapNode*> (theNode);
   unsigned int val = aNode->Data() & theMask;
@@ -344,7 +344,7 @@ Standard_Integer TColStd_PackedMapOfInteger::GetMinimalMapped () const
   if (pFoundNode)
   {
     unsigned int aFullMask (0xffffffff);
-    aResult = TColStd_intMapNode_findNext ((const Standard_Address )pFoundNode, aFullMask);
+    aResult = TColStd_intMapNode_findNext (pFoundNode, aFullMask);
   }
   return aResult;
 }
@@ -378,7 +378,7 @@ Standard_Integer TColStd_PackedMapOfInteger::GetMaximalMapped () const
   if (pFoundNode)
   {
     unsigned int aFullMask (0xffffffff);
-    aResult = TColStd_intMapNode_findPrev ((const Standard_Address )pFoundNode, aFullMask);
+    aResult = TColStd_intMapNode_findPrev (pFoundNode, aFullMask);
   }
   return aResult;
 }
index c8dd276544076f00bc0f046af74a0e6f9b583cb0..50e9e659b216098a64696a7252c4252cfa95c846 100644 (file)
@@ -447,12 +447,12 @@ private:
 
   //! Find the smallest non-zero bit under the given mask.
   //! Outputs the new mask that does not contain the detected bit.
-  Standard_EXPORT static Standard_Integer TColStd_intMapNode_findNext (const Standard_Address theNode,
+  Standard_EXPORT static Standard_Integer TColStd_intMapNode_findNext (const TColStd_intMapNode* theNode,
                                                                        unsigned int& theMask);
 
   //! Find the highest non-zero bit under the given mask.
   //! Outputs the new mask that does not contain the detected bit.
-  Standard_EXPORT static Standard_Integer TColStd_intMapNode_findPrev (const Standard_Address theNode,
+  Standard_EXPORT static Standard_Integer TColStd_intMapNode_findPrev (const TColStd_intMapNode* theNode,
                                                                        unsigned int& theMask);
 
   //! Compute the population (i.e., the number of non-zero bits) of the 32-bit word theData.