mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0032357: Coding Rules - eliminate GCC11 compiler warnings -Wignored-qualifiers
This commit is contained in:
parent
14ba0bbad7
commit
f5682e9f78
@ -23,7 +23,7 @@
|
|||||||
//function : TColStd_intMapNode_findNext
|
//function : TColStd_intMapNode_findNext
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findNext (const Standard_Address theNode,
|
Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findNext (const TColStd_intMapNode* theNode,
|
||||||
unsigned int& theMask)
|
unsigned int& theMask)
|
||||||
{
|
{
|
||||||
const TColStd_intMapNode* aNode = reinterpret_cast<const TColStd_intMapNode*> (theNode);
|
const TColStd_intMapNode* aNode = reinterpret_cast<const TColStd_intMapNode*> (theNode);
|
||||||
@ -66,7 +66,7 @@ Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findNext (const
|
|||||||
//function : TColStd_intMapNode_findPrev
|
//function : TColStd_intMapNode_findPrev
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findPrev (const Standard_Address theNode,
|
Standard_Integer TColStd_PackedMapOfInteger::TColStd_intMapNode_findPrev (const TColStd_intMapNode* theNode,
|
||||||
unsigned int& theMask)
|
unsigned int& theMask)
|
||||||
{
|
{
|
||||||
const TColStd_intMapNode* aNode = reinterpret_cast<const TColStd_intMapNode*> (theNode);
|
const TColStd_intMapNode* aNode = reinterpret_cast<const TColStd_intMapNode*> (theNode);
|
||||||
@ -344,7 +344,7 @@ Standard_Integer TColStd_PackedMapOfInteger::GetMinimalMapped () const
|
|||||||
if (pFoundNode)
|
if (pFoundNode)
|
||||||
{
|
{
|
||||||
unsigned int aFullMask (0xffffffff);
|
unsigned int aFullMask (0xffffffff);
|
||||||
aResult = TColStd_intMapNode_findNext ((const Standard_Address )pFoundNode, aFullMask);
|
aResult = TColStd_intMapNode_findNext (pFoundNode, aFullMask);
|
||||||
}
|
}
|
||||||
return aResult;
|
return aResult;
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ Standard_Integer TColStd_PackedMapOfInteger::GetMaximalMapped () const
|
|||||||
if (pFoundNode)
|
if (pFoundNode)
|
||||||
{
|
{
|
||||||
unsigned int aFullMask (0xffffffff);
|
unsigned int aFullMask (0xffffffff);
|
||||||
aResult = TColStd_intMapNode_findPrev ((const Standard_Address )pFoundNode, aFullMask);
|
aResult = TColStd_intMapNode_findPrev (pFoundNode, aFullMask);
|
||||||
}
|
}
|
||||||
return aResult;
|
return aResult;
|
||||||
}
|
}
|
||||||
|
@ -447,12 +447,12 @@ private:
|
|||||||
|
|
||||||
//! Find the smallest non-zero bit under the given mask.
|
//! Find the smallest non-zero bit under the given mask.
|
||||||
//! Outputs the new mask that does not contain the detected bit.
|
//! 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);
|
unsigned int& theMask);
|
||||||
|
|
||||||
//! Find the highest non-zero bit under the given mask.
|
//! Find the highest non-zero bit under the given mask.
|
||||||
//! Outputs the new mask that does not contain the detected bit.
|
//! 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);
|
unsigned int& theMask);
|
||||||
|
|
||||||
//! Compute the population (i.e., the number of non-zero bits) of the 32-bit word theData.
|
//! Compute the population (i.e., the number of non-zero bits) of the 32-bit word theData.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user