mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024489: Avoid type casts in call to Standard::Free()
Method Standard::Free() is converted to template, so that pointer is nullified using its proper type. Unnecessary type cases in calls to Standard::Free(), Standard::Reallocate(), and NCollection_BaseAllocator::Free() eliminated throughout OCCT code.
This commit is contained in:
4
src/BOPTools/BOPTools_Set.lxx
Normal file → Executable file
4
src/BOPTools/BOPTools_Set.lxx
Normal file → Executable file
@@ -162,7 +162,7 @@ static
|
||||
for (i=0; i<aNb; ++i) {
|
||||
pShapes[i].~TopoDS_Shape();
|
||||
}
|
||||
myAllocator->Free((Standard_Address&)pShapes);
|
||||
myAllocator->Free(pShapes);
|
||||
}
|
||||
//=======================================================================
|
||||
//function : AddEdges
|
||||
@@ -220,7 +220,7 @@ static
|
||||
for (i=0; i<aNb; ++i) {
|
||||
pShapes[i].~TopoDS_Shape();
|
||||
}
|
||||
myAllocator->Free((Standard_Address&)pShapes);
|
||||
myAllocator->Free(pShapes);
|
||||
}
|
||||
//=======================================================================
|
||||
//function : IsEqual
|
||||
|
Reference in New Issue
Block a user