mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-16 06:25:04 +08:00
0024252: GCC warnings on breakage of strict-aliasing rules
Fixed type casts in NCollection maps Avoid invalid type cast in handling of LDOM text object Use correct pointer type in callback function of Graphic3d_CGraduatedTrihedron class Format of printf() simplified in IntPatch_Point.cxx
This commit is contained in:
@@ -173,13 +173,10 @@ template < class TheKeyType,
|
||||
//! ReSize
|
||||
void ReSize (const Standard_Integer N)
|
||||
{
|
||||
DataMapNode** newdata = NULL;
|
||||
DataMapNode** dummy = NULL;
|
||||
NCollection_ListNode** newdata = NULL;
|
||||
NCollection_ListNode** dummy = NULL;
|
||||
Standard_Integer newBuck;
|
||||
if (BeginResize (N, newBuck,
|
||||
(NCollection_ListNode**&)newdata,
|
||||
(NCollection_ListNode**&)dummy,
|
||||
this->myAllocator))
|
||||
if (BeginResize (N, newBuck, newdata, dummy, this->myAllocator))
|
||||
{
|
||||
if (myData1)
|
||||
{
|
||||
@@ -202,10 +199,7 @@ template < class TheKeyType,
|
||||
}
|
||||
}
|
||||
}
|
||||
EndResize(N,newBuck,
|
||||
(NCollection_ListNode**&)newdata,
|
||||
(NCollection_ListNode**&)dummy,
|
||||
this->myAllocator);
|
||||
EndResize (N, newBuck, newdata, dummy, this->myAllocator);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user