1
0
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:
abv
2016-03-11 07:23:55 +03:00
parent d8d342451d
commit e91fd0250d
10 changed files with 31 additions and 31 deletions

View File

@@ -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();