mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0027247: Eliminate remaining compiler warnings in MFC samples and with OCCT_DEBUG
Unsafe and useless casts of handles are eliminated
This commit is contained in:
@@ -280,8 +280,8 @@ void TopOpeBRepBuild_PaveSet::Prepare()
|
||||
myVerticesIt.Initialize(myVertices);
|
||||
if ( MoreLoop() ) cout<<"--- PaveSet : Prepare"<<endl;
|
||||
for (; MoreLoop(); NextLoop() ) {
|
||||
const Handle(TopOpeBRepBuild_Pave)& PV =
|
||||
*((Handle(TopOpeBRepBuild_Pave)*)&(Loop()));
|
||||
Handle(TopOpeBRepBuild_Pave) PV =
|
||||
Handle(TopOpeBRepBuild_Pave)::DownCast(Loop());
|
||||
const TopoDS_Vertex& v = TopoDS::Vertex(PV->Vertex());
|
||||
Standard_Real p = PV->Parameter();
|
||||
Standard_Boolean b = PV->IsShape();
|
||||
|
Reference in New Issue
Block a user