]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/OperationGUI/OperationGUI_GetShapesOnShapeDlg.cxx
Salome HOME
#18963 Minimize compiler warnings
[modules/geom.git] / src / OperationGUI / OperationGUI_GetShapesOnShapeDlg.cxx
index ca392ce51b6a7036e93c5e8f346cf18283707480..da409bb515145ad959287020013c3edf4ea5dbb9 100644 (file)
@@ -321,7 +321,7 @@ bool OperationGUI_GetShapesOnShapeDlg::execute (ObjectList& objects)
   default: aLimit = GEOM::SHAPE ; break;
   }
 
-  GEOM::shape_state aState;
+  GEOM::shape_state aState = GEOM::ST_IN; // todo: aState must be explicitly initialized to avoid warning (see below)
   switch (GroupPoints->ComboBox2->currentIndex())
   {
     case 0:  aState = GEOM::ST_IN;    break;
@@ -335,7 +335,7 @@ bool OperationGUI_GetShapesOnShapeDlg::execute (ObjectList& objects)
   GEOM::GEOM_IShapesOperations_var anOper = GEOM::GEOM_IShapesOperations::_narrow(getOperation());
   GEOM::GEOM_Object_var anObj = anOper->GetShapesOnShapeAsCompound(myObject2, myObject1,
                                                                    (CORBA::Short) aLimit,
-                                                                   aState);
+                                                                   aState); // todo: aState must be explicitly initialized to avoid warning (see above)
 
   if (!anObj->_is_nil())
     objects.push_back(anObj._retn());