Salome HOME
NRI : Remove divide/0 line PAL_SALOME_1_4_1
authornri <nri@opencascade.com>
Tue, 6 Apr 2004 08:28:38 +0000 (08:28 +0000)
committernri <nri@opencascade.com>
Tue, 6 Apr 2004 08:28:38 +0000 (08:28 +0000)
src/GEOM/GEOM_Gen_i.cc

index 529b2b87d0174d047b3f0e2ad9e3c226816f7bed..7b8d5558c30776c59eea663e6879e6099135ff68 100644 (file)
@@ -2363,8 +2363,8 @@ GEOM::GEOM_Gen::ListOfGeomShapes* GEOM_Gen_i::SubShapesAll(GEOM::GEOM_Shape_ptr
 // purpose  : Boolean operation according to the type 'operation'
 //=================================================================================
 GEOM::GEOM_Shape_ptr GEOM_Gen_i::MakeBoolean(GEOM::GEOM_Shape_ptr shape1,
-                                      GEOM::GEOM_Shape_ptr shape2,
-                                      CORBA::Long operation) 
+                                            GEOM::GEOM_Shape_ptr shape2,
+                                            CORBA::Long operation) 
   throw (SALOME::SALOME_Exception)
 {
   Unexpect aCatch(SALOME_SalomeException);
@@ -2502,7 +2502,6 @@ GEOM::AxisStruct GEOM_Gen_i::MakeAxisStruct(CORBA::Double x,
                                      CORBA::Double vy,
                                      CORBA::Double vz) 
 {
-  int a = 1; int b = 0; int c; c=a/b;
   GEOM::AxisStruct A ;
   A.x  = x ;   A.y  = y ;   A.z  = z ;
   A.vx = vx ;  A.vy = vy ;  A.vz = vz ;
@@ -2532,9 +2531,9 @@ GEOM::PointStruct GEOM_Gen_i::MakePointStruct(CORBA::Double x,
 GEOM::DirStruct GEOM_Gen_i::MakeDirection(const GEOM::PointStruct& p)
 { 
   GEOM::DirStruct d ;
-    d.PS.x = p.x ;  d.PS.y = p.y ;  d.PS.z = p.z ;
-    return d ;
-  }
+  d.PS.x = p.x ;  d.PS.y = p.y ;  d.PS.z = p.z ;
+  return d ;
+}
 
 //=================================================================================
 // function : MakeBox()