0024814: Avoid using explicit names of Handle classes
[occt.git] / src / BRepTest / BRepTest_MatCommands.cxx
index 25ba2e3..cc47a85 100644 (file)
@@ -191,10 +191,10 @@ void DrawCurve(const Handle(Geom2d_Curve)& aCurve,
   Draw_Color                 Couleur;
 
   if (type == STANDARD_TYPE(Geom2d_TrimmedCurve)) {
-    curve = (*(Handle_Geom2d_TrimmedCurve*)&aCurve)->BasisCurve();
+    curve = (*(Handle(Geom2d_TrimmedCurve)*)&aCurve)->BasisCurve();
     type = curve->DynamicType();    
     if (type == STANDARD_TYPE(Bisector_BisecAna)) {
-      curve =(*(Handle_Bisector_BisecAna*)&curve)->Geom2dCurve(); 
+      curve =(*(Handle(Bisector_BisecAna)*)&curve)->Geom2dCurve(); 
       type = curve->DynamicType(); 
     }
     // PB of representation of semi_infinite curves.