Salome HOME
#18963 Minimize compiler warnings
authorSALOME <salome@opencascade.com>
Wed, 19 Aug 2020 07:06:02 +0000 (10:06 +0300)
committervsr <vsr@opencascade.com>
Tue, 8 Dec 2020 09:51:31 +0000 (12:51 +0300)
350 files changed:
src/AdvancedEngine/AdvancedEngine_DividedDiskDriver.cxx
src/AdvancedEngine/AdvancedEngine_DividedDiskDriver.hxx
src/AdvancedEngine/AdvancedEngine_IOperations.cxx
src/AdvancedEngine/AdvancedEngine_PipeTShapeDriver.cxx
src/AdvancedEngine/AdvancedEngine_PipeTShapeDriver.hxx
src/AdvancedEngine/AdvancedEngine_SmoothingSurfaceDriver.cxx
src/AdvancedEngine/AdvancedEngine_SmoothingSurfaceDriver.hxx
src/AdvancedGUI/AdvancedGUI_DividedCylinderDlg.cxx
src/AdvancedGUI/AdvancedGUI_DividedDiskDlg.cxx
src/AdvancedGUI/AdvancedGUI_PipeTShapeDlg.cxx
src/BREPPlugin/BREPPlugin_ExportDriver.cxx
src/BREPPlugin/BREPPlugin_ExportDriver.hxx
src/BREPPlugin/BREPPlugin_IECallBack.cxx
src/BREPPlugin/BREPPlugin_ImportDriver.cxx
src/BREPPlugin/BREPPlugin_ImportDriver.hxx
src/BasicGUI/BasicGUI.cxx
src/BasicGUI/BasicGUI_ArcDlg.cxx
src/BasicGUI/BasicGUI_EllipseDlg.cxx
src/BasicGUI/BasicGUI_LineDlg.cxx
src/BasicGUI/BasicGUI_MarkerDlg.cxx
src/BasicGUI/BasicGUI_PlaneDlg.cxx
src/BasicGUI/BasicGUI_PointDlg.cxx
src/BasicGUI/BasicGUI_VectorDlg.cxx
src/BlockFix/BlockFix_BlockFixAPI.cxx
src/BlockFix/BlockFix_BlockFixAPI.hxx
src/BlockFix/BlockFix_PeriodicSurfaceModifier.cxx
src/BlockFix/BlockFix_PeriodicSurfaceModifier.hxx
src/BlockFix/BlockFix_SphereSpaceModifier.cxx
src/BlockFix/BlockFix_SphereSpaceModifier.hxx
src/BlockFix/BlockFix_UnionFaces.cxx
src/BuildGUI/BuildGUI_CompoundDlg.cxx
src/BuildGUI/BuildGUI_EdgeDlg.cxx
src/BuildGUI/BuildGUI_FaceDlg.cxx
src/BuildGUI/BuildGUI_SolidDlg.cxx
src/CurveCreator/CurveCreator.hxx
src/CurveCreator/CurveCreator_Curve.cxx
src/CurveCreator/CurveCreator_Curve.hxx
src/CurveCreator/CurveCreator_Diff.cxx
src/CurveCreator/CurveCreator_Displayer.cxx
src/CurveCreator/CurveCreator_ICurve.hxx
src/CurveCreator/CurveCreator_Operation.cxx
src/CurveCreator/CurveCreator_TableView.cxx
src/CurveCreator/CurveCreator_TreeView.cxx
src/CurveCreator/CurveCreator_Utils.cxx
src/CurveCreator/CurveCreator_Widget.cxx
src/DependencyTree/DependencyTree_Arrow.cxx
src/DisplayGUI/DisplayGUI.cxx
src/DlgRef/DlgRef.h
src/DlgRef/DlgRef_1Check1Spin1Check_QTD.ui
src/DlgRef/DlgRef_1Sel1Frame_QTD.ui
src/DlgRef/DlgRef_1Sel1List1Check3Btn_QTD.ui
src/DlgRef/DlgRef_1Sel3Spin2Check1Spin_QTD.ui
src/DlgRef/DlgRef_2Sel1List2Check_QTD.ui
src/DlgRef/DlgRef_2Sel1Spin3Check1Spin_QTD.ui
src/DlgRef/DlgRef_2Sel2Spin1Push_QTD.ui
src/DlgRef/DlgRef_2Sel2Spin2Push_QTD.ui
src/DlgRef/DlgRef_3Radio1Sel1Spin_QTD.ui
src/DlgRef/DlgRef_3Sel2Check3Spin_QTD.ui
src/DlgRef/DlgRef_3Sel2Spin_QTD.ui
src/DlgRef/DlgRef_4Spin_QTD.ui
src/EntityGUI/EntityGUI.cxx
src/EntityGUI/EntityGUI_1Sel1Spin1Check_QTD.ui
src/EntityGUI/EntityGUI_1Sel1Spin_QTD.ui
src/EntityGUI/EntityGUI_2Sel1Check_QTD.ui
src/EntityGUI/EntityGUI_3DSketcherDlg.cxx
src/EntityGUI/EntityGUI_4Spin1Check_QTD.ui
src/EntityGUI/EntityGUI_Angles_QTD.ui
src/EntityGUI/EntityGUI_Controls_QTD.ui
src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx
src/EntityGUI/EntityGUI_FeatureDetectorDlg.h
src/EntityGUI/EntityGUI_FieldDlg.cxx
src/EntityGUI/EntityGUI_IsolineDlg.cxx
src/EntityGUI/EntityGUI_PolylineDlg.cxx
src/EntityGUI/EntityGUI_SketcherDlg.cxx
src/EntityGUI/EntityGUI_SubShapeDlg.cxx
src/EntityGUI/EntityGUI_SurfFromFaceDlg.cxx
src/GEOM/GEOM_BaseDriver.cxx
src/GEOM/GEOM_BaseDriver.hxx
src/GEOM/GEOM_BaseObject.cxx
src/GEOM/GEOM_BaseObject.hxx
src/GEOM/GEOM_Engine.cxx
src/GEOM/GEOM_Field.cxx
src/GEOM/GEOM_Field.hxx
src/GEOM/GEOM_Function.cxx
src/GEOM/GEOM_Function.hxx
src/GEOM/GEOM_Object.cxx
src/GEOM/GEOM_Object.hxx
src/GEOM/GEOM_Solver.cxx
src/GEOM/GEOM_SubShapeDriver.cxx
src/GEOM/GEOM_SubShapeDriver.hxx
src/GEOMAlgo/GEOMAlgo_Clsf.cxx
src/GEOMAlgo/GEOMAlgo_Clsf.hxx
src/GEOMAlgo/GEOMAlgo_ClsfQuad.cxx
src/GEOMAlgo/GEOMAlgo_ClsfSurf.cxx
src/GEOMAlgo/GEOMAlgo_FinderShapeOn2.cxx
src/GEOMAlgo/GEOMAlgo_GetInPlaceAPI.cxx
src/GEOMAlgo/GEOMAlgo_HAlgo.cxx
src/GEOMAlgo/GEOMAlgo_HAlgo.hxx
src/GEOMAlgo/GEOMAlgo_ShellSolid.cxx
src/GEOMAlgo/GEOMAlgo_SolidSolid.cxx
src/GEOMAlgo/GEOMAlgo_VertexSolid.cxx
src/GEOMAlgo/GEOMAlgo_WireSolid.cxx
src/GEOMBase/GEOMBase.cxx
src/GEOMBase/GEOMBase_Helper.cxx
src/GEOMGUI/GEOMGUI_AnnotationAttrs.cxx
src/GEOMGUI/GEOMGUI_AnnotationAttrs.h
src/GEOMGUI/GEOMGUI_AnnotationMgr.h
src/GEOMGUI/GEOMGUI_CreationInfoWdg.cxx
src/GEOMGUI/GEOMGUI_CreationInfoWdg.h
src/GEOMGUI/GEOMGUI_DimensionProperty.cxx
src/GEOMGUI/GEOMGUI_DimensionProperty.h
src/GEOMGUI/GEOMGUI_OCCSelector.cxx
src/GEOMGUI/GEOMGUI_TextTreeWdg.cxx
src/GEOMGUI/GEOM_Displayer.cxx
src/GEOMGUI/GeometryGUI.h
src/GEOMImpl/GEOMImpl_3DSketcherDriver.cxx
src/GEOMImpl/GEOMImpl_3DSketcherDriver.hxx
src/GEOMImpl/GEOMImpl_ArcDriver.cxx
src/GEOMImpl/GEOMImpl_ArcDriver.hxx
src/GEOMImpl/GEOMImpl_ArchimedeDriver.cxx
src/GEOMImpl/GEOMImpl_ArchimedeDriver.hxx
src/GEOMImpl/GEOMImpl_Block6Explorer.hxx
src/GEOMImpl/GEOMImpl_BlockDriver.cxx
src/GEOMImpl/GEOMImpl_BlockDriver.hxx
src/GEOMImpl/GEOMImpl_BooleanDriver.cxx
src/GEOMImpl/GEOMImpl_BooleanDriver.hxx
src/GEOMImpl/GEOMImpl_BoxDriver.cxx
src/GEOMImpl/GEOMImpl_BoxDriver.hxx
src/GEOMImpl/GEOMImpl_ChamferDriver.cxx
src/GEOMImpl/GEOMImpl_ChamferDriver.hxx
src/GEOMImpl/GEOMImpl_CircleDriver.cxx
src/GEOMImpl/GEOMImpl_CircleDriver.hxx
src/GEOMImpl/GEOMImpl_ConeDriver.cxx
src/GEOMImpl/GEOMImpl_ConeDriver.hxx
src/GEOMImpl/GEOMImpl_CopyDriver.cxx
src/GEOMImpl/GEOMImpl_CopyDriver.hxx
src/GEOMImpl/GEOMImpl_CylinderDriver.cxx
src/GEOMImpl/GEOMImpl_CylinderDriver.hxx
src/GEOMImpl/GEOMImpl_DiskDriver.cxx
src/GEOMImpl/GEOMImpl_DiskDriver.hxx
src/GEOMImpl/GEOMImpl_EllipseDriver.cxx
src/GEOMImpl/GEOMImpl_EllipseDriver.hxx
src/GEOMImpl/GEOMImpl_ExportDriver.cxx
src/GEOMImpl/GEOMImpl_ExportDriver.hxx
src/GEOMImpl/GEOMImpl_FaceDriver.cxx
src/GEOMImpl/GEOMImpl_FaceDriver.hxx
src/GEOMImpl/GEOMImpl_FieldDriver.cxx
src/GEOMImpl/GEOMImpl_FieldDriver.hxx
src/GEOMImpl/GEOMImpl_Fillet1d.cxx
src/GEOMImpl/GEOMImpl_Fillet1dDriver.cxx
src/GEOMImpl/GEOMImpl_Fillet1dDriver.hxx
src/GEOMImpl/GEOMImpl_Fillet2dDriver.cxx
src/GEOMImpl/GEOMImpl_Fillet2dDriver.hxx
src/GEOMImpl/GEOMImpl_FilletDriver.cxx
src/GEOMImpl/GEOMImpl_FilletDriver.hxx
src/GEOMImpl/GEOMImpl_FillingDriver.cxx
src/GEOMImpl/GEOMImpl_FillingDriver.hxx
src/GEOMImpl/GEOMImpl_GlueDriver.cxx
src/GEOMImpl/GEOMImpl_GlueDriver.hxx
src/GEOMImpl/GEOMImpl_HealingDriver.cxx
src/GEOMImpl/GEOMImpl_HealingDriver.hxx
src/GEOMImpl/GEOMImpl_IBlocksOperations.cxx
src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx
src/GEOMImpl/GEOMImpl_IGroupOperations.cxx
src/GEOMImpl/GEOMImpl_ImportDriver.cxx
src/GEOMImpl/GEOMImpl_ImportDriver.hxx
src/GEOMImpl/GEOMImpl_LineDriver.cxx
src/GEOMImpl/GEOMImpl_LineDriver.hxx
src/GEOMImpl/GEOMImpl_MarkerDriver.cxx
src/GEOMImpl/GEOMImpl_MarkerDriver.hxx
src/GEOMImpl/GEOMImpl_MeasureDriver.cxx
src/GEOMImpl/GEOMImpl_MeasureDriver.hxx
src/GEOMImpl/GEOMImpl_MirrorDriver.cxx
src/GEOMImpl/GEOMImpl_MirrorDriver.hxx
src/GEOMImpl/GEOMImpl_OffsetDriver.cxx
src/GEOMImpl/GEOMImpl_OffsetDriver.hxx
src/GEOMImpl/GEOMImpl_PartitionDriver.cxx
src/GEOMImpl/GEOMImpl_PartitionDriver.hxx
src/GEOMImpl/GEOMImpl_PipeDriver.cxx
src/GEOMImpl/GEOMImpl_PipeDriver.hxx
src/GEOMImpl/GEOMImpl_PipePathDriver.cxx
src/GEOMImpl/GEOMImpl_PipePathDriver.hxx
src/GEOMImpl/GEOMImpl_PlaneDriver.cxx
src/GEOMImpl/GEOMImpl_PlaneDriver.hxx
src/GEOMImpl/GEOMImpl_PointDriver.cxx
src/GEOMImpl/GEOMImpl_PointDriver.hxx
src/GEOMImpl/GEOMImpl_PolylineDriver.cxx
src/GEOMImpl/GEOMImpl_PolylineDriver.hxx
src/GEOMImpl/GEOMImpl_PositionDriver.cxx
src/GEOMImpl/GEOMImpl_PositionDriver.hxx
src/GEOMImpl/GEOMImpl_PrismDriver.cxx
src/GEOMImpl/GEOMImpl_PrismDriver.hxx
src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx
src/GEOMImpl/GEOMImpl_ProjectionDriver.hxx
src/GEOMImpl/GEOMImpl_RevolutionDriver.cxx
src/GEOMImpl/GEOMImpl_RevolutionDriver.hxx
src/GEOMImpl/GEOMImpl_RotateDriver.cxx
src/GEOMImpl/GEOMImpl_RotateDriver.hxx
src/GEOMImpl/GEOMImpl_ScaleDriver.cxx
src/GEOMImpl/GEOMImpl_ScaleDriver.hxx
src/GEOMImpl/GEOMImpl_ShapeDriver.cxx
src/GEOMImpl/GEOMImpl_ShapeDriver.hxx
src/GEOMImpl/GEOMImpl_SketcherDriver.cxx
src/GEOMImpl/GEOMImpl_SketcherDriver.hxx
src/GEOMImpl/GEOMImpl_SphereDriver.cxx
src/GEOMImpl/GEOMImpl_SphereDriver.hxx
src/GEOMImpl/GEOMImpl_SplineDriver.cxx
src/GEOMImpl/GEOMImpl_SplineDriver.hxx
src/GEOMImpl/GEOMImpl_ThruSectionsDriver.cxx
src/GEOMImpl/GEOMImpl_ThruSectionsDriver.hxx
src/GEOMImpl/GEOMImpl_TorusDriver.cxx
src/GEOMImpl/GEOMImpl_TorusDriver.hxx
src/GEOMImpl/GEOMImpl_TranslateDriver.cxx
src/GEOMImpl/GEOMImpl_TranslateDriver.hxx
src/GEOMImpl/GEOMImpl_VectorDriver.cxx
src/GEOMImpl/GEOMImpl_VectorDriver.hxx
src/GEOMToolsGUI/GEOMToolsGUI.cxx
src/GEOMToolsGUI/GEOMToolsGUI_1.cxx
src/GEOMToolsGUI/GEOMToolsGUI_MarkerDlg.cxx
src/GEOMToolsGUI/GEOMToolsGUI_ReduceStudyDlg.cxx
src/GEOMUtils/GEOMUtils.cxx
src/GEOMUtils/GEOMUtils.hxx
src/GEOMUtils/GEOMUtils_HTrsfCurve2d.cxx
src/GEOMUtils/GEOMUtils_HTrsfCurve2d.hxx
src/GEOMUtils/GEOMUtils_XmlHandler.cxx
src/GEOM_I/GEOM_Gen_i.cc
src/GEOM_I/GEOM_Gen_i.hh
src/GEOM_I/GEOM_ICurvesOperations_i.cc
src/GEOM_I_Superv/GEOM_Superv_i.cc
src/GEOM_I_Superv/GEOM_Superv_i.hh
src/GEOM_SWIG_WITHIHM/GEOM_Swig_LocalSelector.cxx
src/GEOM_SWIG_WITHIHM/libGEOM_Swig.cxx
src/GenerationGUI/GenerationGUI_FillingDlg.cxx
src/GenerationGUI/GenerationGUI_PrismDlg.cxx
src/GroupGUI/GroupGUI_GroupDlg.cxx
src/IGESPlugin/IGESPlugin_ExportDriver.cxx
src/IGESPlugin/IGESPlugin_ExportDriver.hxx
src/IGESPlugin/IGESPlugin_GUI.cxx
src/IGESPlugin/IGESPlugin_IECallBack.cxx
src/IGESPlugin/IGESPlugin_ImportDriver.cxx
src/IGESPlugin/IGESPlugin_ImportDriver.hxx
src/Material/Material_ResourceMgr.h
src/MeasureGUI/MeasureGUI_AngleDlg.cxx
src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx
src/MeasureGUI/MeasureGUI_CheckSelfIntersectionsDlg.cxx
src/MeasureGUI/MeasureGUI_DimensionCreateTool.cxx
src/MeasureGUI/MeasureGUI_DimensionInteractor.cxx
src/MeasureGUI/MeasureGUI_DistanceDlg.cxx
src/MeasureGUI/MeasureGUI_FastCheckIntersectionsDlg.cxx
src/MeasureGUI/MeasureGUI_ManageDimensionsDlg.cxx
src/MeasureGUI/MeasureGUI_ShapeStatisticsDlg.cxx
src/OBJECT/GEOM_AISShape.cxx
src/OBJECT/GEOM_Actor.cxx
src/OBJECT/GEOM_Actor.h
src/OBJECT/GEOM_Annotation.cxx
src/OBJECT/GEOM_DeviceActor.cxx
src/OBJECT/GEOM_DeviceActor.h
src/OBJECT/GEOM_OCCReader.cxx
src/OBJECT/GEOM_PainterPolyDataMapper.cxx
src/OBJECT/GEOM_PainterPolyDataMapper.h
src/OBJECT/GEOM_VTKPropertyMaterial.cxx
src/OBJECT/GEOM_VTKPropertyMaterial.hxx
src/OBJECT/GEOM_VTKTrihedron.cxx
src/OBJECT/GEOM_VTKTrihedron.hxx
src/OCC2VTK/GEOM_EdgeSource.cxx
src/OCC2VTK/GEOM_EdgeSource.h
src/OCC2VTK/GEOM_FaceSource.h
src/OCC2VTK/GEOM_ShadingFace.cxx
src/OCC2VTK/GEOM_ShadingFace.h
src/OCC2VTK/GEOM_VertexSource.cxx
src/OCC2VTK/GEOM_VertexSource.h
src/OCC2VTK/GEOM_WireframeFace.cxx
src/OCC2VTK/GEOM_WireframeFace.h
src/OCC2VTK/OCC2VTK_Tools.cxx
src/OperationGUI/OperationGUI_ArchimedeDlg.cxx
src/OperationGUI/OperationGUI_GetShapesOnShapeDlg.cxx
src/OperationGUI/OperationGUI_GetSharedShapesDlg.cxx
src/OperationGUI/OperationGUI_PartitionDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_FaceDlg.cxx
src/RepairGUI/RepairGUI_FuseEdgesDlg.cxx
src/RepairGUI/RepairGUI_GlueDlg.cxx
src/RepairGUI/RepairGUI_InspectObjectDlg.cxx
src/RepairGUI/RepairGUI_LimitToleranceDlg.cxx
src/RepairGUI/RepairGUI_RemoveExtraEdgesDlg.cxx
src/RepairGUI/RepairGUI_RemoveWebsDlg.cxx
src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx
src/RepairGUI/RepairGUI_UnionFacesDlg.cxx
src/SKETCHER/Sketcher_Profile.cxx
src/STEPPlugin/STEPPlugin_ExportDriver.cxx
src/STEPPlugin/STEPPlugin_ExportDriver.hxx
src/STEPPlugin/STEPPlugin_IECallBack.cxx
src/STEPPlugin/STEPPlugin_ImportDriver.cxx
src/STEPPlugin/STEPPlugin_ImportDriver.hxx
src/STLPlugin/STLPlugin_ExportDriver.cxx
src/STLPlugin/STLPlugin_ExportDriver.hxx
src/STLPlugin/STLPlugin_GUI.cxx
src/STLPlugin/STLPlugin_IECallBack.cxx
src/STLPlugin/STLPlugin_ImportDriver.cxx
src/STLPlugin/STLPlugin_ImportDriver.hxx
src/ShHealOper/ShHealOper_FillHoles.cxx
src/ShHealOper/ShHealOper_RemoveFace.cxx
src/TransformationGUI/TransformationGUI_ExtensionDlg.cxx
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx
src/TransformationGUI/TransformationGUI_ScaleDlg.cxx
src/VTKPlugin/VTKPlugin_ExportDriver.cxx
src/VTKPlugin/VTKPlugin_ExportDriver.hxx
src/VTKPlugin/VTKPlugin_GUI.cxx
src/VTKPlugin/VTKPlugin_IECallBack.cxx
src/XAO/XAO_BooleanField.cxx
src/XAO/XAO_BooleanField.hxx
src/XAO/XAO_BooleanStep.cxx
src/XAO/XAO_BooleanStep.hxx
src/XAO/XAO_BrepGeometry.cxx
src/XAO/XAO_BrepGeometry.hxx
src/XAO/XAO_DoubleField.cxx
src/XAO/XAO_DoubleField.hxx
src/XAO/XAO_DoubleStep.cxx
src/XAO/XAO_DoubleStep.hxx
src/XAO/XAO_Exception.hxx
src/XAO/XAO_Field.cxx
src/XAO/XAO_Field.hxx
src/XAO/XAO_GeometricElement.cxx
src/XAO/XAO_GeometricElement.hxx
src/XAO/XAO_Geometry.cxx
src/XAO/XAO_Geometry.hxx
src/XAO/XAO_Group.cxx
src/XAO/XAO_Group.hxx
src/XAO/XAO_IntegerField.cxx
src/XAO/XAO_IntegerField.hxx
src/XAO/XAO_IntegerStep.cxx
src/XAO/XAO_IntegerStep.hxx
src/XAO/XAO_Step.cxx
src/XAO/XAO_Step.hxx
src/XAO/XAO_StringField.cxx
src/XAO/XAO_StringField.hxx
src/XAO/XAO_StringStep.cxx
src/XAO/XAO_StringStep.hxx
src/XAO/XAO_Xao.cxx
src/XAO/XAO_Xao.hxx
src/XAO/XAO_XaoExporter.cxx
src/XAO/XAO_XaoExporter.hxx
src/XAO/XAO_XaoUtils.cxx
src/XAO/XAO_XaoUtils.hxx
src/XAO/tests/XaoTest.cxx
src/XAOPlugin/XAOPlugin_Driver.cxx
src/XAOPlugin/XAOPlugin_Driver.hxx
src/XAOPlugin/XAOPlugin_ExportDlg.cxx
src/XAOPlugin/XAOPlugin_IECallBack.cxx
src/XAOPlugin/XAOPlugin_IOperations.cxx
src/XAOPlugin/XAOPlugin_ImportDlg.cxx

index 52c0e504e93b5c6df8171bf2b331ff0ad1729cb6..7771c8bc9291dba331a0792cb4b1161411e91a59 100644 (file)
@@ -523,4 +523,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_DividedDiskDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_DividedDiskDriver,GEOM_BaseDriver)
index 30ef22bbb92f08750ddc7b60ccf616edfa49199a..6cab4c4059cd230e76a89ad32e7cb006b5e4bdd2 100644 (file)
@@ -33,7 +33,7 @@ class gp_Pnt;
 class gp_Dir;
 class gp_Ax3;
 
-DEFINE_STANDARD_HANDLE( AdvancedEngine_DividedDiskDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( AdvancedEngine_DividedDiskDriver, GEOM_BaseDriver )
 
 class AdvancedEngine_DividedDiskDriver : public GEOM_BaseDriver
 {
index dce82045e2a63adc05096b358b898b908633b0ea..9ee5bd895b6d79fd2909d2605af504ba9de4ba87 100644 (file)
@@ -459,31 +459,32 @@ bool AdvancedEngine_IOperations::MakeGroups(Handle(GEOM_Object) theShape, int sh
 
 #ifdef FIND_GROUPS_BY_POINTS
   // BEGIN: new groups search
-
-  //              W2  R2
-  //            .----.-----.----.
-  //           e|    |  |  |    |
-  //            |    |  |  |    |
-  //            .    |  |  |    .
-  //         g / ''..|  |  |..'' \
-  //       f  /      '''''''      \
-  //  .---.--'..     |  |  |     ..'--.---.
-  //  |a    \   '''...........'''   /     |
-  //  |-------\------'  |  '------/-------.
-  //  |         \       |       /         |
-  // c|           \     |     /           |
-  //  |    R1       \   |   /             |
-  //  |               \ | /               |
-  //  ._________________|_________________.
-  //  |       L1        |                 |
-  //  |                 |                 |
-  //  |                 |                 |
-  // b|                 |                 |
-  //  |                 |                 |
-  //  |-----------------|-----------------|
-  //  |    W1           |                 |
-  //  '-----------------'-----------------'
-  //          d
+  /*
+                  W2  R2
+                .----.-----.----.
+               e|    |  |  |    |
+                |    |  |  |    |
+                .    |  |  |    .
+             g / ''..|  |  |..'' \
+           f  /      '''''''      \
+      .---.--'..     |  |  |     ..'--.---.
+      |a    \   '''...........'''   /     |
+      |-------\------'  |  '------/-------.
+      |         \       |       /         |
+     c|           \     |     /           |
+      |    R1       \   |   /             |
+      |               \ | /               |
+      ._________________|_________________.
+      |       L1        |                 |
+      |                 |                 |
+      |                 |                 |
+     b|                 |                 |
+      |                 |                 |
+      |-----------------|-----------------|
+      |    W1           |                 |
+      '-----------------'-----------------'
+              d
+  */
 
   // "Thickness" group (a)
   gp_Pnt aPntA (-theL1, 0, theR1 + theW1/2.);
@@ -1338,7 +1339,7 @@ bool AdvancedEngine_IOperations::MakePipeTShapePartition(Handle(GEOM_Object) the
     else {
       Handle(GEOM_Object) P1, P2, P3, P4, P5, P6;
       int idP1, idP2, idP3, idP4;
-      int PZX, PZY;
+      int PZX=0, PZY=0; // todo: PZX, PZY must be explicitly initialized to avoid warning (see below)
       double ZX=0, ZY=0;
       std::vector<int> LX;
       std::vector<int> LY;
@@ -1412,9 +1413,9 @@ bool AdvancedEngine_IOperations::MakePipeTShapePartition(Handle(GEOM_Object) the
         idP3 = LY.at(1);
 
       P1 = Handle(GEOM_Object)::DownCast(extremVertices->Value(idP1));
-      P2 = Handle(GEOM_Object)::DownCast(extremVertices->Value(idP2));
+      P2 = Handle(GEOM_Object)::DownCast(extremVertices->Value(idP2)); // todo: PZX must be explicitly initialized to avoid warning (see above)
       P3 = Handle(GEOM_Object)::DownCast(extremVertices->Value(idP3));
-      P4 = Handle(GEOM_Object)::DownCast(extremVertices->Value(idP4));
+      P4 = Handle(GEOM_Object)::DownCast(extremVertices->Value(idP4)); // todo: PZY must be explicitly initialized to avoid warning (see above)
 
       Handle(GEOM_Object) Cote_1 = myBasicOperations->MakeLineTwoPnt(P1, vi1);
       if (Cote_1.IsNull()) {
@@ -1563,7 +1564,7 @@ bool AdvancedEngine_IOperations::MakePipeTShapePartition(Handle(GEOM_Object) the
 // Mirror and glue faces
 bool AdvancedEngine_IOperations::MakePipeTShapeMirrorAndGlue(Handle(GEOM_Object) theShape,
                                                              double theR1, double theW1, double theL1,
-                                                             double theR2, double theW2, double theL2)
+                                                             double /*theR2*/, double /*theW2*/, double theL2)
 {
   SetErrorCode(KO);
 
@@ -1682,16 +1683,17 @@ TopoDS_Shape AdvancedEngine_IOperations::MakePipeTShapeThicknessReduction
 {
   // Add thickness reduction elements
   // at the three extremities: Left, Right and Incident
-  //
-  // ---------------------.
-  //   W                   \
-  // ---------------------. \
-  //   ^                   \ '-----------------.
-  //   |R                   \        Wthin     |
-  //   |                     '-----------------'
-  //   v                             Rthin
-  // --.--.--.--.--.--.--.--.--.--.--.--.--.--.--
-  //                     Ltrans    Lthin
+  /*
+     ---------------------.
+       W                   \
+     ---------------------. \
+       ^                   \ '-----------------.
+       |R                   \        Wthin     |
+       |                     '-----------------'
+       v                             Rthin
+     --.--.--.--.--.--.--.--.--.--.--.--.--.--.--
+                         Ltrans    Lthin
+  */
 
   TopoDS_Shape aResult = theShape;
   double aTol = Precision::Confusion();
@@ -1805,15 +1807,17 @@ TopoDS_Shape AdvancedEngine_IOperations::MakeThicknessReduction (gp_Ax2 theAxes,
   }
   bool isThinPart = (Lthin > aTol);
 
-  //     .
-  //   W |\
-  //     . \
-  //   ^  \ '-----------------.
-  //   |R  \|                 | Wthin
-  //   |    '-----------------'
-  //   v                        Rthin
-  // --.--.--.--.--.--.--.--.--.--.--.--.--> theAxes.Direction()
-  //     Ltrans     Lthin
+  /*
+         .
+       W |\
+         . \
+       ^  \ '-----------------.
+       |R  \|                 | Wthin
+       |    '-----------------'
+       v                        Rthin
+     --.--.--.--.--.--.--.--.--.--.--.--.--> theAxes.Direction()
+         Ltrans     Lthin
+  */
 
   double RExt = R + W;
   double RthinExt = Rthin + Wthin;
index 1996c4e03b0a5915b42ecd7098b95de683cc65aa..6ea1895f91b5e40906802da1cc1cd857afc10fb3 100644 (file)
@@ -684,4 +684,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_PipeTShapeDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_PipeTShapeDriver,GEOM_BaseDriver)
index 512a11a1561c2ae657b6557f7e495222d97c4288..60e867619ac016105a26d66ac7d2672cae6c1b60 100644 (file)
@@ -28,7 +28,7 @@
 #include <TColStd_HSequenceOfInteger.hxx>
 #include <Geom_Surface.hxx>
 
-DEFINE_STANDARD_HANDLE( AdvancedEngine_PipeTShapeDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( AdvancedEngine_PipeTShapeDriver, GEOM_BaseDriver )
 
 class AdvancedEngine_PipeTShapeDriver : public GEOM_BaseDriver
 {
index 6e1bd3e5d187e6294028b9dae48ae022ee975e9e..0e3e065c58453c11725fa90173cfbf6ca8f7184f 100644 (file)
@@ -266,4 +266,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_SmoothingSurfaceDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_SmoothingSurfaceDriver,GEOM_BaseDriver)
index 44dfda532362663c244a7aa42657a10f327b6b94..221901845a35c72906070790ca48e6e681f22e06 100644 (file)
@@ -25,7 +25,7 @@
 #include <TColgp_HArray1OfPnt.hxx>
 #include <TopoDS_Shape.hxx>
 
-DEFINE_STANDARD_HANDLE( AdvancedEngine_SmoothingSurfaceDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( AdvancedEngine_SmoothingSurfaceDriver, GEOM_BaseDriver )
 
 class AdvancedEngine_SmoothingSurfaceDriver : public GEOM_BaseDriver
 {
index a962dd496dda12863d380328fa079c03f5619ac7..659c55091923487369d1d6c48ff68f6d0c2af88d 100644 (file)
@@ -134,7 +134,7 @@ void AdvancedGUI_DividedCylinderDlg::Init()
 // function : SetDoubleSpinBoxStep()
 // purpose  : Double spin box management
 //=================================================================================
-void AdvancedGUI_DividedCylinderDlg::SetDoubleSpinBoxStep (double step)
+void AdvancedGUI_DividedCylinderDlg::SetDoubleSpinBoxStep (double /*step*/)
 {
   //@@ set double spin box step for all spin boxes here @@//
 }
@@ -223,7 +223,7 @@ GEOM::GEOM_IOperations_ptr AdvancedGUI_DividedCylinderDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool AdvancedGUI_DividedCylinderDlg::isValid (QString& msg)
+bool AdvancedGUI_DividedCylinderDlg::isValid (QString& /*msg*/)
 {
   bool ok = true;
 
index b39b35c746f3af3c93d68e727b225e1d3b85d1b0..26753b8a1b2f5d3dbed28f84686007885acd454d 100644 (file)
@@ -169,7 +169,7 @@ void AdvancedGUI_DividedDiskDlg::Init()
 // function : SetDoubleSpinBoxStep()
 // purpose  : Double spin box management
 //=================================================================================
-void AdvancedGUI_DividedDiskDlg::SetDoubleSpinBoxStep (double step)
+void AdvancedGUI_DividedDiskDlg::SetDoubleSpinBoxStep (double /*step*/)
 {
   //@@ set double spin box step for all spin boxes here @@//
 }
@@ -399,7 +399,7 @@ GEOM::GEOM_IOperations_ptr AdvancedGUI_DividedDiskDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool AdvancedGUI_DividedDiskDlg::isValid (QString& msg)
+bool AdvancedGUI_DividedDiskDlg::isValid (QString& /*msg*/)
 {
   bool ok = true;
 
index daf58c34acbc78af88f953dbd850d230a3b8d24d..13b9ad2e921625e12a1a260d30c0da2076f16091 100644 (file)
@@ -420,7 +420,7 @@ void AdvancedGUI_PipeTShapeDlg::ApplyNewDimensions()
 // function : UpdatePicture()
 // purpose  :
 //=================================================================================
-void AdvancedGUI_PipeTShapeDlg::UpdatePicture (QWidget* old, QWidget* now)
+void AdvancedGUI_PipeTShapeDlg::UpdatePicture (QWidget* /*old*/, QWidget* now)
 {
   if (ChamferGroupParams->GroupBox1->isChecked())
     if (now == MainTubeGroupParams->SpinBox_DX)
@@ -504,7 +504,7 @@ void AdvancedGUI_PipeTShapeDlg::SetPosition (bool isChecked)
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void AdvancedGUI_PipeTShapeDlg::ValueChangedInSpinBox (double newValue)
+void AdvancedGUI_PipeTShapeDlg::ValueChangedInSpinBox (double /*newValue*/)
 {
   if (JunctionPointsSel->GroupBox1->isChecked() && myOkPoint1 && myOkPoint2 && myOkPoint3)
     CheckCompatiblePosition(myPoint1, myPoint2, myPoint3, 0.01);
index e1fd56e5ff0259493f21ef59fc8c279eaa17b5f7..d51ba2e1afd280f2317f8e3794f34a04d918da01 100644 (file)
@@ -54,7 +54,7 @@ BREPPlugin_ExportDriver::BREPPlugin_ExportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer BREPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log) const
+Standard_Integer BREPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
 {
   if (Label().IsNull()) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -89,10 +89,10 @@ Standard_Integer BREPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log
  */
 //================================================================================
 bool BREPPlugin_ExportDriver::
-GetCreationInformation( std::string&             theOperationName,
-                        std::vector<GEOM_Param>& theParams )
+GetCreationInformation( std::string&             /*theOperationName*/,
+                        std::vector<GEOM_Param>& /*theParams*/ )
 {
   return false;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ExportDriver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ExportDriver,GEOM_BaseDriver )
index e22f7daa0146adafa34ad0c3910428c6e7410d5a..bfe0ccd3adac1e161e0641655dc6e616054c632c 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( BREPPlugin_ExportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( BREPPlugin_ExportDriver, GEOM_BaseDriver )
 
 class BREPPlugin_ExportDriver : public GEOM_BaseDriver
 {
index 497818a2be6607b6b3c12bff8100014d644fe44b..e5c1ab9b49e9f001b9acf8fdef4bc1d61779f1a9 100644 (file)
@@ -47,8 +47,8 @@ BREPPlugin_IECallBack::~BREPPlugin_IECallBack()
 //=============================================================================
 bool 
 BREPPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
-                                          const TCollection_AsciiString& theFileName,
-                                          const TCollection_AsciiString& theFormatName )
+                               const TCollection_AsciiString& theFileName,
+                               const TCollection_AsciiString& /*theFormatName*/ )
 {
   BREPPlugin_IOperations* aPluginOperations = BREPPlugin_OperationsCreator::get( GetEngine() );
   aPluginOperations->ExportBREP( theOriginal, theFileName );
@@ -61,7 +61,7 @@ BREPPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
  */
 //=============================================================================
 Handle(TColStd_HSequenceOfTransient)
-BREPPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName,
+BREPPlugin_IECallBack::Import( const TCollection_AsciiString& /*theFormatName*/,
                                           const TCollection_AsciiString& theFileName )
 {
   BREPPlugin_IOperations* aPluginOperations = BREPPlugin_OperationsCreator::get( GetEngine() );
index 19ff83c9c1277f6dbf24d08fd52ccd6d0ab77b94..a206161f6bcee95799255cca62f0bff963658856 100644 (file)
@@ -109,4 +109,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ImportDriver, GEOM_BaseDriver )
index 8b019e96c260649f4fc3316d8c657a6d3c3c3c94..84d168d9448245aa881b45aed559e7e9c7b3f3fe 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( BREPPlugin_ImportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( BREPPlugin_ImportDriver, GEOM_BaseDriver )
 
 class BREPPlugin_ImportDriver : public GEOM_BaseDriver
 {
index 785984d3bd9b1fbb6c753a3c73bf998aa6261cd2..309468168ef22e6347d5788c3dcd0046dc8e7a88 100644 (file)
@@ -126,7 +126,7 @@ bool BasicGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 // function : 0nMousePress()
 // purpose  : [static] manage mouse events
 //=================================================================================
-bool BasicGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow )
+bool BasicGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* theViewWindow )
 {
   QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
 
index 440e525b05511c0af19a9bda2c5ae09f41385b88..ae65357a62828b2174de87d1e96ac1c028074bc7 100644 (file)
@@ -459,7 +459,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_ArcDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_ArcDlg::isValid( QString& msg )
+bool BasicGUI_ArcDlg::isValid( QString& /*msg*/ )
 {
   bool ok = myPoint1 && myPoint2 && myPoint3 &&
     myPoint1 != myPoint2 && myPoint1 != myPoint3 && myPoint2 != myPoint3;
index 057f05f43f402bc4b69f5d181ea13243785e9531..78ee5ca7c808085118cbd0376a8af359b0ad389f 100644 (file)
@@ -360,7 +360,7 @@ void BasicGUI_EllipseDlg::enterEvent( QEvent* )
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void BasicGUI_EllipseDlg::ValueChangedInSpinBox( double newValue )
+void BasicGUI_EllipseDlg::ValueChangedInSpinBox( double /*newValue*/ )
 {
   displayPreview(true);
 }
index e5290f7dea1e3c0630a388679d1c4a0d607c319d..7898f6323ff37ef6485dd0a83d257aba9ba18f95 100644 (file)
@@ -371,7 +371,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_LineDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool BasicGUI_LineDlg::isValid( QString& msg )
+bool BasicGUI_LineDlg::isValid( QString& /*msg*/ )
 {
   bool ok = false;
   switch ( getConstructorId() ) {
index 2e080041fd0359dd3b87b168256522789834ab88..e985396c45cd2249ded3bc378bec48807c81bb0d 100644 (file)
@@ -378,13 +378,13 @@ void BasicGUI_MarkerDlg::onSelectionDone()
     return;
   }
 
-  TopAbs_ShapeEnum aNeedType;
+  TopAbs_ShapeEnum aNeedType = TopAbs_SHAPE; // todo: aNeedType must be explicitly initialized to avoid warning (see below)
   if ( getConstructorId() == 1 ) // by shape position
     aNeedType = TopAbs_SHAPE;
   else if ( getConstructorId() == 2 ) // by point and two vectors
     aNeedType = myEditCurrentArgument == Group2->LineEdit1 ? TopAbs_VERTEX : TopAbs_EDGE;
   
-  GEOM::GeomObjPtr aSelectedObject = getSelected( aNeedType );
+  GEOM::GeomObjPtr aSelectedObject = getSelected( aNeedType ); // todo: aNeedType must be explicitly initialized to avoid warning (see above)
   TopoDS_Shape aShape;
   if ( aSelectedObject && GEOMBase::GetShape( aSelectedObject.get(), aShape ) && !aShape.IsNull() ) {
     QString aName = GEOMBase::GetName( aSelectedObject.get() );
index 095e568755a3081886fb1ece23cf75a590464fa5..028d3ef31eeed32cad0b70f9ce6c441f5ae2095b 100644 (file)
@@ -633,7 +633,7 @@ void BasicGUI_PlaneDlg::enterEvent( QEvent* )
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void BasicGUI_PlaneDlg::ValueChangedInSpinBox( double newValue )
+void BasicGUI_PlaneDlg::ValueChangedInSpinBox( double /*newValue*/ )
 {
   displayPreview(true);
 }
index 094472a1ad83208ac264698ded98a3cd2bb742a8..72fab7a956e9ec567795e1c077be0c42f2674be3 100644 (file)
@@ -667,7 +667,7 @@ void BasicGUI_PointDlg::DeactivateActiveDialog()
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void BasicGUI_PointDlg::ValueChangedInSpinBox(double newValue)
+void BasicGUI_PointDlg::ValueChangedInSpinBox(double /*newValue*/)
 {
   displayPreview(true);
 }
@@ -957,7 +957,7 @@ QList<GEOM::GeomObjPtr> BasicGUI_PointDlg::getSourceObjects()
 // function : ClickParamCoord()
 // purpose  :
 //=================================================================================
-void BasicGUI_PointDlg::ClickParamCoord(int id)
+void BasicGUI_PointDlg::ClickParamCoord(int /*id*/)
 {
   updateParamCoord(true);
   displayPreview(true);
index e6a0deca4faf807f70ad1114b300107f1423636a..6e9bda01e4732f0ce566624246ca6a8c73f3d9c4 100644 (file)
@@ -367,7 +367,7 @@ void BasicGUI_VectorDlg::enterEvent( QEvent* )
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void BasicGUI_VectorDlg::ValueChangedInSpinBox( double newValue )
+void BasicGUI_VectorDlg::ValueChangedInSpinBox( double /*newValue*/ )
 {
   displayPreview(true);
 }
@@ -376,7 +376,7 @@ void BasicGUI_VectorDlg::ValueChangedInSpinBox( double newValue )
 // function : ReverseVector()
 // purpose  : 'state' not used here
 //=================================================================================
-void BasicGUI_VectorDlg::ReverseVector( int state )
+void BasicGUI_VectorDlg::ReverseVector( int /*state*/ )
 {
   double dx = -GroupDimensions->SpinBox_DX->value();
   double dy = -GroupDimensions->SpinBox_DY->value();
index 41726eaf1e43891e19c3c543b547ada8e866a7ab..09e0dafb8192898b0d228351ef44b758bb242679 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <Precision.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(BlockFix_BlockFixAPI, Standard_Transient);
+IMPLEMENT_STANDARD_RTTIEXT(BlockFix_BlockFixAPI, Standard_Transient)
 
 //=======================================================================
 //function : BlockFix_BlockFixAPI
index b8389423f449da8c69378d846f2fa70658c59d36..4b23b97649d08de8368e94c80f8a78a84bda8bee 100644 (file)
@@ -31,7 +31,7 @@
 #include <TopoDS_Shape.hxx>
 #include <Standard_Real.hxx>
 
-DEFINE_STANDARD_HANDLE(BlockFix_BlockFixAPI, Standard_Transient);
+DEFINE_STANDARD_HANDLE(BlockFix_BlockFixAPI, Standard_Transient)
 
 class BlockFix_BlockFixAPI : public Standard_Transient
 {
index 09ce49587b6a77988e9535676925b022b50fd9de..4a7af3cddc561ddcbea2ae40bcd63c95b2f70f01 100644 (file)
@@ -50,7 +50,7 @@
 
 #include <gp_Pnt.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification);
+IMPLEMENT_STANDARD_RTTIEXT(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification)
 
 //=======================================================================
 //function : BlockFix_PeriodicSurfaceModifier()
index 7621ac82b4db9410fe72fc86868b76a205eb2b80..36763982a38911cf754543662bf0d417f784791d 100644 (file)
@@ -44,7 +44,7 @@ class Geom_Curve;
 class Geom2d_Curve;
 class gp_Pnt;
 
-DEFINE_STANDARD_HANDLE(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification);
+DEFINE_STANDARD_HANDLE(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification)
 
 class BlockFix_PeriodicSurfaceModifier : public BRepTools_Modification {
 
index 56fbb6f58fdfb7c01a46a14e616ce8668b1b0466..45479f535680e021434b962b5608f2b98e81967f 100644 (file)
@@ -56,7 +56,7 @@
 #include <gp_Pnt.hxx>
 #include <gp_Sphere.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(BlockFix_SphereSpaceModifier, BRepTools_Modification);
+IMPLEMENT_STANDARD_RTTIEXT(BlockFix_SphereSpaceModifier, BRepTools_Modification)
 
 //=======================================================================
 //function : BlockFix_SphereSpaceModifier
index d2d50940317bb6f3a6bd227cb1cc8d74038434d7..670c6c5fa30a2565e82d68fc5c3d98b262e9d804 100644 (file)
@@ -42,7 +42,7 @@ class Geom_Curve;
 class Geom2d_Curve;
 class gp_Pnt;
 
-DEFINE_STANDARD_HANDLE(BlockFix_SphereSpaceModifier, BRepTools_Modification);
+DEFINE_STANDARD_HANDLE(BlockFix_SphereSpaceModifier, BRepTools_Modification)
 
 class BlockFix_SphereSpaceModifier : public BRepTools_Modification {
 
index 8ded10b0bb16cce09ecf0baabfe6cfb207269d85..8fb5fde51f0a47d431b3f9fe8c07c82d4129eef2 100644 (file)
@@ -904,7 +904,7 @@ Standard_Boolean BlockFix_UnionFaces::IsSameDomain(const TopoDS_Face& aFace,
 
       return anIIInt.TangentFaces();
     }
-    catch (Standard_Failure) {
+    catch (Standard_Failure&) {
       return false;
     }
   }
index a2fca2d294079271266f462f2ad77a47e8a7f53b..61787272f163d40d774dd39efbcf7b207bc6f851 100644 (file)
@@ -195,7 +195,7 @@ void BuildGUI_CompoundDlg::ActivateThisDialog()
 // function : enterEvent()
 // purpose  :
 //=================================================================================
-void BuildGUI_CompoundDlg::enterEvent(QEvent* e)
+void BuildGUI_CompoundDlg::enterEvent(QEvent*)
 {
   if ( !mainFrame()->GroupConstructors->isEnabled() )
     ActivateThisDialog(); 
index 0e73b0f00cac5df0d9385541de5fd8877aa10706..5d27c12aadc917a1fd54b3d5b99a0ec86e5930bb 100644 (file)
@@ -405,7 +405,7 @@ void BuildGUI_EdgeDlg::enterEvent (QEvent*)
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void BuildGUI_EdgeDlg::ValueChangedInSpinBox(double newValue)
+void BuildGUI_EdgeDlg::ValueChangedInSpinBox(double /*newValue*/)
 {
   displayPreview(true);
 }
index ae6f1dc18802cbd7c62b28097cccbb4600e29660..b391f9d48bfce7761bd8df79c66c6846035f20c4 100644 (file)
@@ -554,7 +554,7 @@ void BuildGUI_FaceDlg::ActivateThisDialog()
 // function : onItemClicked()
 // purpose  : called when tree item was clicked
 //=================================================================================
-void BuildGUI_FaceDlg::onItemClicked( QTreeWidgetItem* theItem, int theColumn )
+void BuildGUI_FaceDlg::onItemClicked( QTreeWidgetItem* theItem, int /*theColumn*/ )
 {
   if ( !theItem || !( theItem->flags() & Qt::ItemIsSelectable ) )
     return;
index b3e285de5b0f77d8cb9be6f83a84730a071b5769..5fa3eee2126b4a728055ac9a4941315baa301227 100644 (file)
@@ -371,24 +371,22 @@ bool BuildGUI_SolidDlg::execute( ObjectList& objects )
   switch (getConstructorId()) {
     case 0:
     {
-       if ( GroupSolid->CheckButton1->isChecked() ) {
-         GEOM::ListOfGO_var objlist = new GEOM::ListOfGO();
-         objlist->length( myShells.count() );
-         for ( int i = 0; i < myShells.count(); i++ )
-               objlist[i] = myShells[i].copy();
-
-         anObj = anOper->MakeSolidShells( objlist.in() );
-
-         if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
-       }
-       else {
-         for ( int i = 0, n = myShells.count(); i< n; i++ ){
-               anObj = anOper->MakeSolidShell( myShells[ i ].get() );
-
-               if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
-         }
-       }
-       break;
+      if ( GroupSolid->CheckButton1->isChecked() ) {
+        GEOM::ListOfGO_var objlist = new GEOM::ListOfGO();
+        objlist->length( myShells.count() );
+        for ( int i = 0; i < myShells.count(); i++ )
+          objlist[i] = myShells[i].copy();
+
+        anObj = anOper->MakeSolidShells( objlist.in() );
+        if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
+      }
+      else {
+        for ( int i = 0, n = myShells.count(); i< n; i++ ) {
+          anObj = anOper->MakeSolidShell( myShells[ i ].get() );
+          if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
+        }
+      }
+      break;
     }
     case 1:
     {
@@ -397,9 +395,9 @@ bool BuildGUI_SolidDlg::execute( ObjectList& objects )
       for ( int i = 0; i < myShells.count(); i++ )
         objlist[i] = myShells[i].copy();
 
-       anObj = anOper->MakeSolidFromConnectedFaces( objlist.in(), GroupFaces->CheckButton1->isChecked() );
+      anObj = anOper->MakeSolidFromConnectedFaces( objlist.in(), GroupFaces->CheckButton1->isChecked() );
+      if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
 
-       if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
       break;
     }
   }
index ed05c84e858c68377aebd201c7dcd3a8a8043984..cc633b1b840a3466e98fa5f98b39c6512b6f049f 100644 (file)
@@ -48,6 +48,6 @@ namespace CurveCreator
   typedef std::list<CurveCreator_PosPoint*> PosPointsList;
   //! Map of sections with positioned points
   typedef std::map<int,PosPointsList> SectionsMap;
-};
+}
 
 #endif
index bcd3a6898238f6c18e92eaa4cd6d49b6ae2bf0c2..c9f64e2523ccb7de9748b0ef24ec2d0f6b9c54a1 100644 (file)
 // purpose:
 //=======================================================================
 CurveCreator_Curve::CurveCreator_Curve( const CurveCreator::Dimension theDimension )
-: myIsLocked  (false),
+: mySkipSorting (false),
+  myIsLocked (false),
   myDimension (theDimension),
   myDisplayer (NULL),
-  myAISShape  (NULL),
-  myNbUndos   (0),
-  myNbRedos   (0),
-  myUndoDepth (-1),
-  myOpLevel(0),
-  mySkipSorting(false),
   myPointAspectColor (Quantity_NOC_ROYALBLUE4), 
   myCurveColor (Quantity_NOC_RED),
-  myEraseAll(true),
-  myLineWidth(1)
+  myLineWidth (1),
+  myNbUndos (0),
+  myNbRedos (0),
+  myUndoDepth (-1),
+  myOpLevel (0),
+  myAISShape (NULL),
+  myEraseAll (true)
 {
 }
 
@@ -95,12 +95,12 @@ std::string CurveCreator_Curve::getUniqSectionName() const
         sprintf( aBuffer, "Section_%d", i+1 );
         std::string aName(aBuffer);
         int j;
-        for( j = 0 ; j < mySections.size() ; j++ ){
+        for( j = 0 ; j < (int)mySections.size() ; j++ ){
             aSection = (CurveCreator_Section*)getSection( j );
             if ( aSection && aSection->myName == aName )
               break;
         }
-        if( j == mySections.size() )
+        if( j == (int)mySections.size() )
             return aName;
     }
     return "";
@@ -791,8 +791,8 @@ bool CurveCreator_Curve::addPointsInternal( const CurveCreator::SectionsMap &the
           anIterPosition = aSection->myPoints.end();
         else
           anIterPosition = aSection->myPoints.begin() + toICoord(anIPnt);
-        CurveCreator::Coordinates::const_iterator aFirstPosition = 
-          aCoords.begin();
+        /*CurveCreator::Coordinates::const_iterator aFirstPosition = 
+          aCoords.begin();*/
         aSection->myPoints.insert(anIterPosition,
                                   aCoords.begin(), aCoords.end());
       }
@@ -884,9 +884,9 @@ bool CurveCreator_Curve::setPoint( const int theISection,
   aPoints.push_back( aPosPoint );
   aSectionsMap[theISection] = aPoints;
 
-  int aSize1 = getNbPoints( theISection );
+  /*int aSize1 = */getNbPoints( theISection ); // todo: unused variable
   res = setPointInternal( aSectionsMap );
-  int aSize2 = getNbPoints( theISection );
+  /*int aSize2 = */getNbPoints( theISection ); // todo: unused variable
 
   finishOperation();
 
index a05113a8e4985afea9e828ab66df9faf64c01f20..b0d89d9b38cae5d6828a0c4f5588d7c12aa868de 100644 (file)
@@ -217,7 +217,7 @@ public:
   //! A virtual method.
   const CurveCreator_ISection* getSection(const int theSectionIndex) const
   {
-    if (theSectionIndex >= 0 && theSectionIndex < mySections.size())
+    if (theSectionIndex >= 0 && theSectionIndex < (int)mySections.size())
     {
       return (CurveCreator_ISection*)mySections[theSectionIndex];
     }
index 62b7b7fb255e4f2b5157fc44bbb451f7fc641f68..de33d8e64ab5632a071abb0ce4c654754796dc99 100644 (file)
@@ -275,6 +275,8 @@ bool CurveCreator_Diff::init(const CurveCreator_Curve *theCurve,
             setNbUndos(1);
             isOK = myPUndo[0].init(CurveCreator_Operation::RemoveSection, -1);
             break;
+        default:
+          break;
         }
       }
     }
@@ -299,6 +301,8 @@ bool CurveCreator_Diff::init(const CurveCreator_Curve *theCurve,
         isOK = myPUndo[0].init(CurveCreator_Operation::RenameSection,
                                theCurve->getSectionName(theIntParam1), theIntParam1);
         break;
+      default:
+        break;
     }
   }
   if( !isOK ){
index f8b0d3411b921f88def9e50a7ce4813ef224b0dc..6541bef62120c363bc5683dd166ff017910473bc 100644 (file)
@@ -29,7 +29,7 @@ CurveCreator_Displayer::CurveCreator_Displayer( Handle(AIS_InteractiveContext) t
 CurveCreator_Displayer::~CurveCreator_Displayer(void)
 {
   eraseAll( true );
-  for( int i = 0 ; i < myObjects.size() ; i++ ){
+  for( int i = 0 ; i < (int)myObjects.size() ; i++ ){
     myObjects[i].Nullify();
   }
   myObjects.clear();
@@ -54,7 +54,7 @@ void CurveCreator_Displayer::eraseAll( bool isUpdate )
 {
   if(myObjects.empty())
     return;
-  for( int i = 0 ; i < myObjects.size() ; i++ )
+  for( int i = 0 ; i < (int)myObjects.size() ; i++ )
     myContext->Erase(myObjects[i], Standard_False);
   myObjects.clear();
   if( isUpdate )
@@ -80,7 +80,7 @@ Quantity_Color CurveCreator_Displayer::getActiveColor( bool isHL )
 
 void CurveCreator_Displayer::Update()
 {
-  for( int i = 0 ; i < myObjects.size() ; i++ )
+  for( int i = 0 ; i < (int)myObjects.size() ; i++ )
     myContext->Update(myObjects[i], Standard_True);
   myContext->UpdateCurrentViewer();
 }
index be321e80af14279293d39c894bfcb3d891bd3e1f..39e7a5d18254494cff02478bc8fc1d2acf0cdc0d 100644 (file)
@@ -50,7 +50,7 @@ namespace CurveCreator
     Dim3d = 3
   };
 
-};
+}
 
 //! The type represents the interface to the curve section.
 struct CURVECREATOR_EXPORT CurveCreator_ISection
index 1a48fcc35b179e3183a665fd63fc473c8781adbd..dbdf235646136b5be947cfb003a6b82047061898 100644 (file)
@@ -363,6 +363,8 @@ void CurveCreator_Operation::apply(CurveCreator_Curve *theCurve)
             case CurveCreator_Operation::SetCoordinates:
               theCurve->setPointInternal( aSectionsMap );
               break;
+            default:
+              break;
           }
         }
         break;
index 4251d425d835ef5716385a8411b766456bc8fd1a..77336440baa82f26f7af73ec18dd434271bb929a 100644 (file)
@@ -205,10 +205,12 @@ int CurveCreator_TableView::getPointId( const int theRowId ) const
 void CurveCreator_TableView::OnHeaderClick( int theLogicalId )
 {
   if( theLogicalId == myCurrentSortId )
+  {
     if( myCurrentSortOrder == Qt::AscendingOrder )
       myCurrentSortOrder = Qt::DescendingOrder;
     else
       myCurrentSortOrder = Qt::AscendingOrder;
+  }
 
   sortByColumn( theLogicalId, myCurrentSortOrder );
 
index c2a6505e332f98e9d9ed53f66ac78d72ace888fc..bec6d1b964d2a11b086ab0de96be17d99bf74358 100644 (file)
@@ -65,7 +65,7 @@ CurveCreator_TreeViewModel::CurveCreator_TreeViewModel( CurveCreator_ICurve* the
 
 int    CurveCreator_TreeViewModel::columnCount(const QModelIndex & parent ) const
 {
-  if( parent.internalId() == ID_SECTION )
+  if( parent.internalId() == (quintptr)ID_SECTION )
     return 2;
   else
     return 2;
@@ -76,7 +76,7 @@ QVariant      CurveCreator_TreeViewModel::data(const QModelIndex & index, int role )
   int aRow = index.row();
   int aColumn = index.column();
   if( myCurve ){
-    if( index.internalId() == ID_SECTION ){
+    if( index.internalId() == (quintptr)ID_SECTION ){
       if( role == Qt::DisplayRole ){
         if( aColumn == 0 )
           return QString::fromStdString(myCurve->getSectionName(aRow));
@@ -150,7 +150,7 @@ QModelIndex CurveCreator_TreeViewModel::parent(const QModelIndex & theIndex) con
   if( !theIndex.isValid() )
     return QModelIndex();
 
-  if( theIndex.internalId() == ID_SECTION ){
+  if( theIndex.internalId() == (quintptr)ID_SECTION ){
     return QModelIndex();
   }
   return createIndex( theIndex.internalId(), 0, ID_SECTION  );
@@ -165,7 +165,7 @@ int CurveCreator_TreeViewModel::rowCount(const QModelIndex & parent ) const
       aRowCnt =  myCurve->getNbSections();
     }
     else{
-      if( parent.internalId() == ID_SECTION ){
+      if( parent.internalId() == (quintptr)ID_SECTION ){
         //Points level
         aRowCnt = myCurve->getNbPoints(parent.row());
       }
@@ -191,21 +191,21 @@ QModelIndex CurveCreator_TreeViewModel::pointIndex( int theSection, int thePoint
 
 bool CurveCreator_TreeViewModel::isSection( const QModelIndex& theIndx ) const
 {
-  if( theIndx.internalId() == ID_SECTION )
+  if( theIndx.internalId() == (quintptr)ID_SECTION )
     return true;
   return false;
 }
 
 int CurveCreator_TreeViewModel::getSection( const QModelIndex& theIndx ) const
 {
-  if( theIndx.internalId() == ID_SECTION )
+  if( theIndx.internalId() == (quintptr)ID_SECTION )
     return theIndx.row();
   return theIndx.internalId();
 }
 
 int CurveCreator_TreeViewModel::getPoint( const QModelIndex& theIndx ) const
 {
-  if( theIndx.internalId() == ID_SECTION )
+  if( theIndx.internalId() == (quintptr)ID_SECTION )
     return -1;
   return theIndx.row();
 }
@@ -320,7 +320,7 @@ void CurveCreator_TreeView::sectionsRemoved( int theSection, int theSectionCnt )
   }
 }
 
-void CurveCreator_TreeView::setIndexState( const QModelIndex& theIndx, bool& isExpanded, bool& isSelected, bool& isCurrent )
+void CurveCreator_TreeView::setIndexState( const QModelIndex& theIndx, bool& isExpanded, bool& isSelected, bool& /*isCurrent*/ ) // todo: isCurrent is not set!
 {
   setExpanded( theIndx, isExpanded );
   QItemSelectionModel::SelectionFlags aFlag = QItemSelectionModel::Select;
index f115904b3a10b2b9fbc55b4628e335528e89199a..ef1705d473e175a490648effe5d3782b86a129f4 100644 (file)
@@ -618,9 +618,9 @@ void CurveCreator_Utils::setSelectedPoints( Handle(AIS_InteractiveContext) theCo
   Handle(SelectMgr_Selection) aSelection = anAISShape->Selection( AIS_Shape::SelectionMode( TopAbs_VERTEX ) );
   const NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>& selected = aSelection->Entities();
 
-  CurveCreator_ICurve::SectionToPointList::const_iterator anIt = thePoints.begin(),
-                                                          aLast = thePoints.end();
-  bool isFound = false;
+  /*CurveCreator_ICurve::SectionToPointList::const_iterator anIt = thePoints.begin(),
+                                                          aLast = thePoints.end();*/
+  //bool isFound = false;
   for( int i=0; i<aSize; i++ )
   {
   for ( NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator selIter( selected );
@@ -634,7 +634,7 @@ void CurveCreator_Utils::setSelectedPoints( Handle(AIS_InteractiveContext) theCo
     Handle(Select3D_SensitivePoint) aSenPnt = Handle(Select3D_SensitivePoint)::DownCast( aSenEntity );
 
     gp_Pnt anOwnerPnt = aSenPnt->Point();
-    Handle(SelectMgr_EntityOwner) anOwner = Handle(SelectMgr_EntityOwner)::DownCast( aSenPnt->OwnerId() );
+    Handle(SelectMgr_EntityOwner) anOwner = aSenPnt->OwnerId();
 
       bool isIntersect = fabs( aPntsToSelect[i].X() - anOwnerPnt.X() ) < LOCAL_SELECTION_TOLERANCE &&
                          fabs( aPntsToSelect[i].Y() - anOwnerPnt.Y() ) < LOCAL_SELECTION_TOLERANCE;
@@ -663,14 +663,14 @@ void CurveCreator_Utils::setLocalPointContext( const CurveCreator_ICurve* theCur
     return;
 
   if ( theOpen ) {
-    theContext->ClearCurrents( false );
+    theContext->ClearCurrents( false ); // todo: deprecated OCCT API
     // load the curve AIS object to the local context with the point selection
     Handle(AIS_InteractiveObject) anAIS = theCurve->getAISObject();
     if ( !anAIS.IsNull() )
     {
       if ( anAIS->IsKind( STANDARD_TYPE( AIS_Shape ) ) )
       {
-        theContext->Load( anAIS, -1/*selection mode*/, true/*allow decomposition*/ );
+        theContext->Load( anAIS, -1/*selection mode*/);
         theContext->Activate( anAIS, AIS_Shape::SelectionMode( (TopAbs_ShapeEnum)TopAbs_VERTEX ) );
       }
     }
index e5af5cdbe4c5de822c788e12f1064dc5910e8360..b853429caaec690f4f8e38d1cf9eef25c2017684 100644 (file)
@@ -82,10 +82,10 @@ CurveCreator_Widget::CurveCreator_Widget(QWidget* parent,
                                          CurveCreator_ICurve *theCurve,
                                          const int theActionFlags,
                                          const QStringList& theCoordTitles,
-                                         Qt::WindowFlags fl )
-: QWidget(parent), myNewSectionEditor(NULL), myCurve(theCurve), mySection(0),
+                                         Qt::WindowFlags /*fl*/ )
+: QWidget(parent), myCurve(theCurve), myNewSectionEditor(NULL),
+  myOCCViewer( 0 ), mySection(0),
   myDragStarted( false ), myDragInteractionStyle( SUIT_ViewModel::STANDARD ),
-  myOCCViewer( 0 ),
   myOld2DMode(OCCViewer_ViewWindow::No2dMode)
 {
   bool isToEnableClosed = !( theActionFlags & DisableClosedSection );
@@ -431,6 +431,8 @@ void CurveCreator_Widget::updateActionsStates()
       break;
     }*/
 
+    default:
+      break;
     }
     
     /*int aSelObjsCnt = aSelPoints.size() + aSelSections.size();
@@ -480,7 +482,7 @@ void CurveCreator_Widget::onModificationMode(bool checked)
   myLocalPointView->setVisible( checked );
 }
 
-void CurveCreator_Widget::onDetectionMode(bool checked)
+void CurveCreator_Widget::onDetectionMode(bool /*checked*/)
 {
 }
 
@@ -511,6 +513,8 @@ void CurveCreator_Widget::onModeChanged(bool checked)
         else if (myActionMap[MODIFICATION_MODE_ID]->isChecked())
           myActionMap[MODIFICATION_MODE_ID]->trigger();
         break;
+      default:
+        break;
     }
   }
   updateActionsStates();
@@ -617,18 +621,18 @@ void CurveCreator_Widget::onModifySection()
   bool isClosed = myNewSectionEditor->isClosed();
   CurveCreator::SectionType aSectType = myNewSectionEditor->getSectionType();
   if( myCurve->getSectionName(mySection) != aName.toStdString() )
-    myCurve->setSectionName( mySection , aName.toStdString() );
+    myCurve->setSectionName( mySection, aName.toStdString() );
 
-  bool isGeomModified = false;
+  //bool isGeomModified = false;
 
   if( myCurve->getSectionType(mySection) != aSectType ) {
     myCurve->setSectionType( mySection, aSectType );
-    isGeomModified = true;
+    //isGeomModified = true;
   }
 
   if( myCurve->isClosed(mySection) != isClosed ) {
     myCurve->setClosed( mySection, isClosed );
-    isGeomModified = true;
+    //isGeomModified = true;
   }
   mySectionView->sectionChanged(mySection);
   updateUndoRedo();
@@ -706,7 +710,7 @@ void CurveCreator_Widget::onJoinAll()
   for( int i = 0, aNb = myCurve->getNbSections(); i < aNb ; i++ ){
     aSectionsToJoin.push_back( i );
   }
-  bool aRes = myCurve->join( aSectionsToJoin );
+  /*bool aRes = */myCurve->join( aSectionsToJoin );
 
   mySectionView->reset();
   updateActionsStates();
@@ -1113,7 +1117,7 @@ void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEven
       return;
 
     if (!aHasShift)
-      aCtx->ClearCurrents( false );
+      aCtx->ClearCurrents( false );  // todo: deprecated OCCT API
 
     Handle(V3d_View) aView3d = aView->getViewPort()->getView();
     if ( !aView3d.IsNull() )
@@ -1141,7 +1145,6 @@ void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEven
   }
 
   if ( myDragStarted ) {
-    bool isDragged = myDragged;
     CurveCreator_ICurve::SectionToPointList aDraggedPoints;
     QMap<CurveCreator_ICurve::SectionToPoint, CurveCreator::Coordinates > anInitialDragPointsCoords;
     if ( myDragged ) {
@@ -1246,7 +1249,7 @@ void CurveCreator_Widget::onMouseMove( SUIT_ViewWindow*, QMouseEvent* theEvent )
  * Set zero viewer by the last view closed in
  * \param theManager a viewer manager
  */
-void CurveCreator_Widget::onLastViewClosed( SUIT_ViewManager* theManager )
+void CurveCreator_Widget::onLastViewClosed( SUIT_ViewManager* /*theManager*/ )
 {
   myOCCViewer = 0;
 }
@@ -1266,7 +1269,7 @@ void CurveCreator_Widget::onMouseMove( QMouseEvent* theEvent )
   onMouseMove( 0, theEvent );
 }
 
-void CurveCreator_Widget::onCellChanged( int theRow, int theColumn )
+void CurveCreator_Widget::onCellChanged( int theRow, int /*theColumn*/ )
 {
   int aCurrSect = myLocalPointView->getSectionId( theRow );
   int aPntIndex = myLocalPointView->getPointId( theRow );
@@ -1459,7 +1462,7 @@ void CurveCreator_Widget::updateLocalPointView()
     return;
 
   CurveCreator_Utils::getSelectedPoints( aContext, myCurve, myLocalPoints );
-  int aNbPoints = myLocalPoints.size();
+  //int aNbPoints = myLocalPoints.size();
 
   //bool isRowLimit = aNbPoints > myLocalPointRowLimit;
   myLocalPointView->setVisible( getActionMode() == ModificationMode/* && !isRowLimit */);
index 0095c52ddee9bf46702015d23658ece1b74af5cf..e8e11cdbbf4c500cbdf7bb2ee11816bab96661fd 100644 (file)
@@ -38,11 +38,11 @@ const qreal arrowSize = 20;
 
 DependencyTree_Arrow::DependencyTree_Arrow( DependencyTree_Object* theStartItem,
                                             DependencyTree_Object* theEndItem,
-                                            QGraphicsItem* parent, QGraphicsScene* scene )
+                                            QGraphicsItem* parent, QGraphicsScene* /*scene*/ )
 :QGraphicsLineItem( parent ),
-myIsBiLink( false ),
 myStartItem( theStartItem ),
-myEndItem( theEndItem )
+myEndItem( theEndItem ),
+myIsBiLink( false )
 {
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
 
index edcb9586c99861886580943b9353a26389906493..e6faa1093168937c54debdd54fa2ec4cc8ec4489 100644 (file)
@@ -82,7 +82,7 @@ DisplayGUI::~DisplayGUI()
 // function : DisplayGUI::OnGUIEvent()
 // purpose  : Dispatch menu command
 //=======================================================================
-bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
+bool DisplayGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* /*parent*/)
 {
   SalomeApp_Application* app = getGeometryGUI()->getApp();
   if (!app) return false;
index 11edd3df2fe43adbcc4d12610e24ae5619027926..b835e126240b5a2e6904d4926ff00081f1f42971 100644 (file)
@@ -979,6 +979,6 @@ public:
 namespace DlgRef
 {
   DLGREF_EXPORT QString PrintDoubleValue( double, int = 16 );
-};
+}
 
 #endif // GEOM_DLGREF_H
index d4dc9543f81479b39908b02d7cdd656e700af0bc..42573e925a602cca80e1ecd8f0402b68875d832e 100644 (file)
@@ -31,7 +31,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <property name="spacing">
        <number>6</number>
       </property>
index c4e51d14ed129c32ea6a6ebbbe42beb1d6b1878e..810785e6f9edf04f485f55526ff85ef1a59f49dc 100644 (file)
@@ -31,7 +31,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index 562f2cef89832a9bdfec2c700b42310a9912b345..26c18b45bcd03b27c74c7a16816ab8a47f84f565 100644 (file)
  <tabstops>
   <tabstop>PushButton1</tabstop>
   <tabstop>LineEdit1</tabstop>
+  <tabstop>ComboBox1</tabstop>
   <tabstop>CheckButton1</tabstop>
-  <tabstop>ListView1</tabstop>
   <tabstop>PushButton2</tabstop>
   <tabstop>PushButton3</tabstop>
   <tabstop>PushButton4</tabstop>
index 0eeeeddeda2a52338dc81b70dcc9ffd1a4cd26bd..f11cee9a97f683dfefdf0b7fd142f0a71c7788e7 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <property name="spacing">
        <number>6</number>
       </property>
index 8cc018c025abd3b367c8bc030398cfb869255d82..561f7c0c70d9a0abf82d24d04386db04964210ed 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index 479e7bd812408895cafb3177ad903d6f5f07c587..06d30c9ab296009f38713f432183fc069a3ecc30 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <property name="spacing">
        <number>6</number>
       </property>
index d240954498f68660d67e734af137e6c1417c6edf..1d8224b113ec2d26efbc38be39f567cd3fc9789f 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index 625ad9d62cc47594a6469aa53f4fb2b295781ca2..6b2f4b58011cf61b1dc6256809c9a2b969de7ce2 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index f6f82c007034e10ce15f60b296fa3dd5cee09c2e..58eb605d8ea5cf056a21dad898e37a0e1538e772 100644 (file)
@@ -36,7 +36,7 @@
      <property name="title" >
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout" >
+     <layout class="QGridLayout" name="gridLayout1" >
       <item row="3" column="0" colspan="4" >
        <layout class="QHBoxLayout" name="horizontalLayout" >
         <item>
index 7d6b025ed11b567093cc24db4a0054606be0b41e..6e49d1334229c661f726fc7fbcd51b09a911257a 100644 (file)
@@ -22,7 +22,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <property name="spacing">
        <number>6</number>
       </property>
index 5092829699687ae7ec19cd12d67ff07807aa5ca7..aa97c8ac64293c09d02b244d0eeaffd42a7240b0 100644 (file)
@@ -36,7 +36,7 @@
      <property name="title" >
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout" >
+     <layout class="QGridLayout" name="gridLayout1" >
       <item row="0" column="0" >
        <widget class="QLabel" name="TextLabel1" >
         <property name="sizePolicy" >
index ae4643041639055ea7c23f523baa4f0a87b39729..65bbb1126aa04fdd08dc45ff1932ece454f62d3e 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string/>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index 5d470125c1ef0d0d2d714462de62b7c0834eec95..33a3274852ac3df106d860b5342adca6b9a24b11 100644 (file)
@@ -213,7 +213,7 @@ bool EntityGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
 // function : 0nMousePress()
 // purpose  : [static] manage mouse events
 //=================================================================================
-bool EntityGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow )
+bool EntityGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* theViewWindow )
 {
   QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
 
@@ -295,7 +295,7 @@ bool EntityGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWi
 // function : 0nMouseRelease()
 // purpose  : [static] manage mouse events
 //=================================================================================
-bool EntityGUI::OnMouseRelease( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow )
+bool EntityGUI::OnMouseRelease( QMouseEvent* pe, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* theViewWindow )
 {
   ((OCCViewer_ViewWindow*)theViewWindow)->setSketcherStyle(false);
 #ifdef WITH_OPENCV
@@ -324,7 +324,7 @@ bool EntityGUI::OnMouseRelease( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_View
 // function : 0nMouseMove()
 // purpose  : [static] manage mouse events
 //=================================================================================
-bool EntityGUI::OnMouseMove( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow )
+bool EntityGUI::OnMouseMove( QMouseEvent* pe, SUIT_Desktop* /*parent*/, SUIT_ViewWindow* theViewWindow )
 {
   QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
   
@@ -390,7 +390,7 @@ void EntityGUI::DisplaySimulationShape( const TopoDS_Shape& S1, const TopoDS_Sha
     }
     ic->UpdateCurrentViewer();
   }
-  catch( Standard_Failure ) {
+  catch( Standard_Failure& ) {
     MESSAGE( "Exception caught in EntityGUI::DisplaySimulationShape" );
   } 
 }
index df1b6889447159c1e26e808c585bf698c34be84b..38bdd3983301dd126ba35a29e3d37c8061181b53 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">\r
       <string>Values</string>\r
      </property>\r
-     <layout class="QGridLayout" name="gridLayout" columnstretch="0,0,1,0">\r
+     <layout class="QGridLayout" name="gridLayout1" columnstretch="0,0,1,0">\r
       <item row="0" column="0">\r
        <widget class="QLabel" name="TextLabel1">\r
         <property name="sizePolicy">\r
index a40875a0e64875702976c194c964120c6cd42d3b..e1fa7f231f54a8eb0331bf66013a59924239313f 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">\r
       <string>Values</string>\r
      </property>\r
-     <layout class="QGridLayout" name="gridLayout">\r
+     <layout class="QGridLayout" name="gridLayout1">\r
       <item row="0" column="0">\r
        <widget class="QLabel" name="TextLabel1">\r
         <property name="sizePolicy">\r
index 4d0f6d907a5fc38cbb9b5df7a1a17835e66ccfc3..0fa31e48cc915d4b2f9c189fb36e95039ab3a72e 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string>Values</string>
      </property>
-     <layout class="QGridLayout" name="gridLayout" columnstretch="0,0,1,0">
+     <layout class="QGridLayout" name="gridLayout1" columnstretch="0,0,1,0">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index ef19ec0f3c6605c22271ae5289da0f2ada83c80b..e90a4495b13f5cbdc6d828a5633290c5d546d826 100644 (file)
@@ -130,8 +130,8 @@ private:
                   const Handle(Prs3d_Presentation)& aPresentation,
                   const Standard_Integer aMode);
 
-  void ComputeSelection (  const Handle(SelectMgr_Selection)& aSelection,
-                           const Standard_Integer aMode){} ;
+  void ComputeSelection (  const Handle(SelectMgr_Selection)& /*aSelection*/,
+                           const Standard_Integer /*aMode*/){} ;
 
 protected:
   TCollection_ExtendedString          aText;
@@ -171,11 +171,11 @@ AIS_Text::AIS_Text( const TCollection_ExtendedString& text, const gp_Pnt& positi
   aColor          = color;
   aFontAspect     = fontAspect;
   aFont           = font;
-};
+}
 
-void AIS_Text::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
+void AIS_Text::Compute(const Handle(PrsMgr_PresentationManager3d)& /*aPresentationManager*/,
                           const Handle(Prs3d_Presentation)& aPresentation,
-                          const Standard_Integer aMode)
+                          const Standard_Integer /*aMode*/)
 {
 
   aPresentation->Clear();
@@ -191,8 +191,8 @@ void AIS_Text::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentation
   asp->Aspect()->SetTextZoomable(aZoomable);
   asp->Aspect()->SetTextAngle(aAngle);
   asp->Aspect()->SetTextFontAspect(aFontAspect);
-  Prs3d_Text::Draw(aPresentation, asp, aText, aPosition);
-};
+  Prs3d_Text::Draw(aPresentation, asp, aText, aPosition); // todo: deprecated OCCT API
+}
 
 bool isSame (double d1, double d2)
 {
@@ -210,11 +210,11 @@ EntityGUI_3DSketcherDlg::EntityGUI_3DSketcherDlg (GeometryGUI* theGeometryGUI, Q
                                                   bool modal, Qt::WindowFlags fl,
                                                   const double lineWidth)
   : GEOMBase_Skeleton(theGeometryGUI, parent, modal, fl),
+    myLengthIORedoList(),
     myMode(-1),
     myOK(false),
     myLineWidth(lineWidth),
     myGeometryGUI(theGeometryGUI),
-    myLengthIORedoList(),
     myIsUndoRedo(false)
 {
   QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
@@ -831,7 +831,7 @@ void EntityGUI_3DSketcherDlg::ActivateThisDialog()
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void EntityGUI_3DSketcherDlg::ValueChangedInSpinBox (double newValue)
+void EntityGUI_3DSketcherDlg::ValueChangedInSpinBox (double /*newValue*/)
 {
   GEOMBase_Helper::displayPreview(true, false, true, true, myLineWidth);
 }
@@ -917,7 +917,7 @@ void EntityGUI_3DSketcherDlg::BoxChecked (bool checked)
 // function : ButtonClicked()
 // purpose  :
 //=================================================================================
-void EntityGUI_3DSketcherDlg::ButtonClicked (bool checked)
+void EntityGUI_3DSketcherDlg::ButtonClicked (bool /*checked*/)
 {
   if (GroupAngles->radioButton_1->isChecked())
     myOrientation = OXY;
@@ -1326,8 +1326,8 @@ void EntityGUI_3DSketcherDlg::displayPreview (GEOM::GEOM_Object_ptr object,
                                               const bool            activate,
                                               const bool            update,
                                               const double          lineWidth,
-                                              const int             displayMode,
-                                              const int             color)
+                                              const int             /*displayMode*/,
+                                              const int             /*color*/)
 {
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
 
index b298c7c9d1d614222697931e9db983a1e8a9f152..79834a2927a2e1e4578762829476b8d3d922195e 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string>Values</string>
      </property>
-     <layout class="QGridLayout" name="gridLayout" columnstretch="0,1,0">
+     <layout class="QGridLayout" name="gridLayout1" columnstretch="0,1,0">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index a5c4aa5fb3c1961ba41b57deb83661f32930e992..e4c14c0463d6f91d729572f21f1baf9dfde2be78 100644 (file)
@@ -25,7 +25,7 @@
      <property name="title">
       <string>Values</string>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout1">
       <item row="0" column="0">
        <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
index 7d8c71b74932afcf0070338db625261a601c12b4..8ff88fb6975d4f2928108eff18b79a84d953659a 100644 (file)
@@ -30,7 +30,7 @@
      </property>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
-       <layout class="QGridLayout" name="gridLayout">
+       <layout class="QGridLayout" name="gridLayout1">
         <item row="0" column="0">
          <widget class="QCheckBox" name="CheckBox2">
           <property name="text">
index 89d86c11ba6a5460c152892bb8720abee03ef83b..fdaddededd8df00c05862a1260250c52c43f4a9c 100644 (file)
@@ -407,8 +407,8 @@ void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument()
 {
   
   // TODO supprimer les lignes qui ne servent Ã  rien le cas Ã©chéant
-  SUIT_ViewWindow*       theViewWindow  = getDesktop()->activeWindow();
-  SOCC_Viewer* soccViewer = (SOCC_Viewer*)(theViewWindow->getViewManager()->getViewModel());
+  //SUIT_ViewWindow*       theViewWindow  = getDesktop()->activeWindow();
+  //SOCC_Viewer* soccViewer = (SOCC_Viewer*)(theViewWindow->getViewManager()->getViewModel());
 
   if (!myEditCurrentArgument->isEnabled())
     return;
@@ -618,9 +618,10 @@ ShapeRec_Parameters* EntityGUI_FeatureDetectorDlg::parametersChanged()
     aCornersParameters->qualityLevel = (dynamic_cast<QDoubleSpinBox*>(myWidgets[QUALITY_LEVEL]))->value();
     aCornersParameters->minDistance  = (dynamic_cast<QDoubleSpinBox*>(myWidgets[MIN_DISTANCE]))->value();
     switch ( (dynamic_cast<QComboBox*>(myWidgets[TYPE_CRITERIA]))->currentIndex() ) {
-    case 0: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER;
-    case 1: aCornersParameters->typeCriteria = CV_TERMCRIT_EPS;
-    case 2: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER | CV_TERMCRIT_EPS;
+    case 0: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER; break;
+    case 1: aCornersParameters->typeCriteria = CV_TERMCRIT_EPS; break;
+    case 2: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER | CV_TERMCRIT_EPS; break;
+    default: break;
     }
     aCornersParameters->maxIter = (dynamic_cast<QSpinBox*>(myWidgets[MAX_ITER]))->value();
     aCornersParameters->epsilon = (dynamic_cast<QDoubleSpinBox*>(myWidgets[EPSILON]))->value();
index b4d3825f521c27d5eaab615d55fc98797b933edc..4e6d6c8e6ceaa3af74889f9fa3868d5c57e1fd37 100644 (file)
@@ -106,7 +106,7 @@ private:
   QList<QWidget*>                    myWidgets;
   
   // Output typeselection widget
-  DlgRef_3Radio*                     myOutputGroup;;
+  DlgRef_3Radio*                     myOutputGroup;
   
   gp_Pnt                             myStartPnt;
   gp_Pnt                             myEndPnt;
index d3efa0a7ba5187f3c50abd4dd3ba56368f2bd7e8..de5cde856d06a8c30632bde6fcdd53031b526248 100644 (file)
@@ -344,7 +344,7 @@ void EntityGUI_FieldDlg::Delegate::setModelData( QWidget* editor,
 
 void EntityGUI_FieldDlg::Delegate::updateEditorGeometry( QWidget* editor,
                                                          const QStyleOptionViewItem& option, 
-                                                         const QModelIndex& index ) const
+                                                         const QModelIndex& /*index*/ ) const
 {
   editor->setGeometry( option.rect );
 }
@@ -393,7 +393,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
     if ( !bs->_is_nil() )
     {
       GEOM::short_array_var vals = bs->GetValues();
-      if ( vals->length() == nbRows * nbComps )
+      if ( (int)vals->length() == nbRows * nbComps )
         for ( int iV = 0, iR = 0; iR < nbRows; ++iR )
           for ( int iC = 1; iC < nbColumns; ++iC )
             setItem( iR, iC, new CheckItem( vals[ iV++ ]));
@@ -407,7 +407,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
     if ( !is->_is_nil() )
     {
       GEOM::ListOfLong_var vals = is->GetValues();
-      if ( vals->length() == nbRows * nbComps )
+      if ( (int)vals->length() == nbRows * nbComps )
         for ( int iV = 0, iR = 0; iR < nbRows; ++iR )
           for ( int iC = 1; iC < nbColumns; ++iC )
             setItem( iR, iC, new IntSpinItem( vals[ iV++ ]));
@@ -420,7 +420,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
     if ( !ds->_is_nil() )
     {
       GEOM::ListOfDouble_var vals = ds->GetValues();
-      if ( vals->length() == nbRows * nbComps )
+      if ( (int)vals->length() == nbRows * nbComps )
         for ( int iV = 0, iR = 0; iR < nbRows; ++iR )
           for ( int iC = 1; iC < nbColumns; ++iC )
             setItem( iR, iC, new DoubleSpinItem( vals[ iV++ ]));
@@ -432,7 +432,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
     if ( !ss->_is_nil() )
     {
       GEOM::string_array_var vals = ss->GetValues();
-      if ( vals->length() == nbRows * nbComps )
+      if ( (int)vals->length() == nbRows * nbComps )
         for ( int iV = 0, iR = 0; iR < nbRows; ++iR )
           for ( int iC = 1; iC < nbColumns; ++iC )
             setItem( iR, iC, new QTableWidgetItem( vals[ iV++ ].in() ));
@@ -1054,7 +1054,7 @@ void EntityGUI_FieldDlg::Init()
 // function : enterEvent()
 // purpose  :
 //=================================================================================
-void EntityGUI_FieldDlg::enterEvent(QEvent* e)
+void EntityGUI_FieldDlg::enterEvent(QEvent*)
 {
   if (!buttonCancel()->isEnabled())
     ActivateThisDialog();
@@ -1413,7 +1413,7 @@ void EntityGUI_FieldDlg::showCurStep()
       if ( !myIsCreation && !myField->_is_nil() )
       {
         GEOM::string_array_var compNames = myField->GetComponents();
-        for ( int iC = 0; iC < compNames->length(); ++iC )
+        for ( int iC = 0; iC < (int)compNames->length(); ++iC )
           headers << compNames[ iC ].in();
       }
       else
@@ -1628,7 +1628,7 @@ void EntityGUI_FieldDlg::updateDims(int curDim)
 //=================================================================================
 void EntityGUI_FieldDlg::activateSelection()
 {
-  bool isApply = ((QPushButton*)sender() == buttonApply());
+  //bool isApply = ((QPushButton*)sender() == buttonApply());
   if(!isApplyAndClose())
     erasePreview(false);
 
index 313464132fc0ed9299742e936f237b3617cedfaa..88e3966c5eca96df33c451bac0fcf7be04787354 100644 (file)
@@ -198,7 +198,7 @@ GEOM::GEOM_IOperations_ptr EntityGUI_IsolineDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool EntityGUI_IsolineDlg::isValid (QString& msg)
+bool EntityGUI_IsolineDlg::isValid (QString& /*msg*/)
 {
   return myFace;
 }
@@ -278,7 +278,7 @@ void EntityGUI_IsolineDlg::SetEditFace()
 // function : ValueChangedInSpinBox
 // purpose  :
 //=================================================================================
-void EntityGUI_IsolineDlg::ValueChangedInSpinBox(double newValue)
+void EntityGUI_IsolineDlg::ValueChangedInSpinBox(double /*newValue*/)
 {
   displayPreview(true);
 }
index a92758ebf83d2b27094bcd48b3ffe6a2c987a213..3d6bc374171581940fc3a5b4b18733b22c6aafeb 100644 (file)
@@ -62,8 +62,8 @@ EntityGUI_PolylineDlg::EntityGUI_PolylineDlg
     myPlnComboBox         (0),
     myPlnButton           (0),
     myPlnSelButton        (0),
-    myWPlaneLineEdit      (0),
     myPolylineSelButton   (0),
+    myWPlaneLineEdit      (0),
     myPolylineEdit        (0),
     myEditCurrentArgument (0),
     myPreviewManager(0),
@@ -293,7 +293,7 @@ GEOM::GEOM_IOperations_ptr EntityGUI_PolylineDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool EntityGUI_PolylineDlg::isValid( QString& msg )
+bool EntityGUI_PolylineDlg::isValid( QString& /*msg*/ )
 {
   return true;
 }
@@ -530,7 +530,7 @@ void EntityGUI_PolylineDlg::SelectionIntoArgument( bool isForced )
 // function : SetEditCurrentArgument()
 // purpose  :
 //=================================================================================
-void EntityGUI_PolylineDlg::SetEditCurrentArgument( bool isChecked )
+void EntityGUI_PolylineDlg::SetEditCurrentArgument( bool /*isChecked*/ )
 {
   if (sender() == myPlnSelButton)
   {
index c2456fbebde5791cf71557c4b456054c084eb68d..88e48bd5fd1bfe47c071a7436a6723ecc2f3dcc3 100644 (file)
@@ -83,9 +83,9 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg( GeometryGUI* GUI, QWidget* parent,
                                               bool modal, Qt::WindowFlags fl,
                                               const double lineWidth )
   : QDialog( parent, fl ),
+    GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
     myIsAllAdded( false ),
     myIsApply( false ),
-    GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
     myGeometryGUI( GUI ),
     myLineWidth( lineWidth )
 {
@@ -1873,7 +1873,7 @@ void EntityGUI_SketcherDlg::ValueChangedInSpinBox( double newValue )
         LastDecimal = aPrecision;
       else                    // 'g' format in the QString
         LastDecimal = qAbs( aPrecision ) - ceil( log10(minRad) );
-        minRad = ceil(pow(10,LastDecimal) * minRad) / pow(10,LastDecimal); // Rounded up at the last allowed decimal place
+      minRad = ceil(pow(10,LastDecimal) * minRad) / pow(10,LastDecimal); // Rounded up at the last allowed decimal place
       if ( Abs(vz) < minRad){
         if (vz < 0.0)
           Group3Spin->SpinBox_DZ->setValue( - minRad );
@@ -2492,8 +2492,8 @@ void EntityGUI_SketcherDlg::displayPreview( GEOM::GEOM_Object_ptr object,
                                             const bool            activate,
                                             const bool            update,
                                             const double          lineWidth,
-                                            const int             displayMode,
-                                            const int             color )
+                                            const int             /*displayMode*/,
+                                            const int             /*color*/ )
 {
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
 
index 541581d0e7071a9c68e1fd7c79be30237827f7f4..c72483cacd617556108a6d9eaa0df549d0f6b385 100644 (file)
@@ -910,7 +910,7 @@ void EntityGUI_SubShapeDlg::ClickOnOkFilter()
   
   TopTools_IndexedMapOfShape aSubShapesMap;
   TopExp::MapShapes(myShape, aSubShapesMap);
-  SALOME_View* view = GEOM_Displayer::GetActiveView();
+  //SALOME_View* view = GEOM_Displayer::GetActiveView();
   getDisplayer()->Erase(myObject, false, false);
   CORBA::String_var aMainEntry = myObject->GetStudyEntry();
   QString anEntryBase = aMainEntry.in();
index 94878d5bfc0fb12d74f42567dc59171247572708..c54a5c6ffeb136969a181c9d9c54cbebea3345ac 100644 (file)
@@ -176,7 +176,7 @@ GEOM::GEOM_IOperations_ptr EntityGUI_SurfFromFaceDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool EntityGUI_SurfFromFaceDlg::isValid (QString& msg)
+bool EntityGUI_SurfFromFaceDlg::isValid (QString& /*msg*/)
 {
   return myFace;
 }
index c922810d4055466eba3e62732f0cc08d7a81270e..d55188334a2db743125843c340dbf32da898f9f5 100644 (file)
@@ -33,7 +33,7 @@
 #include <TDataStd_Name.hxx>
 #include <TDocStd_Owner.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver);
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver)
 
 //================================================================================
 /*!
index 118cefc4561cedc71a8c91002d93a725f4cb9ebc..37dfa4ee8ccdf18b64eead183c7aba0811e12133 100644 (file)
@@ -100,6 +100,6 @@ public:
   DEFINE_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver)
 };
 
-DEFINE_STANDARD_HANDLE (GEOM_BaseDriver,TFunction_Driver);
+DEFINE_STANDARD_HANDLE (GEOM_BaseDriver,TFunction_Driver)
 
 #endif
index c3a710c2a5c934f5c05961a2e768fed18d13af47..72e6c9bfd5c5bb1869a26ac439834e153d8ece74 100644 (file)
@@ -486,4 +486,4 @@ TDF_Label GEOM_BaseObject::GetFreeLabel()
   return _label.FindChild(FREE_LABEL);
 }
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseObject, Standard_Transient );
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseObject, Standard_Transient )
index 3abac4f1b260ad2d9980aa5f6774d0c38773c644..40986a688e1ef8183257088ef05e46070bc228e1 100644 (file)
@@ -37,7 +37,7 @@
 class GEOM_BaseObject;
 class GEOM_Engine;
 
-DEFINE_STANDARD_HANDLE( GEOM_BaseObject, Standard_Transient );
+DEFINE_STANDARD_HANDLE( GEOM_BaseObject, Standard_Transient )
 
 class GEOM_BaseObject : public Standard_Transient
 {
index 0386e423693ea90a94323fee37fd37f70cf1e6b0..c69a5722f6b2751cf14a36467d3ced062e05db99 100644 (file)
@@ -114,7 +114,7 @@ bool ProcessFunction(Handle(GEOM_Function)&             theFunction,
                      TCollection_AsciiString&           theScript,
                      TCollection_AsciiString&           theAfterScript,
                      const TVariablesList&              theVariables,
-                     const bool                         theIsPublished,
+                     const bool                         /*theIsPublished*/,
                      TDF_LabelMap&                      theProcessed,
                      std::set<TCollection_AsciiString>& theIgnoreObjs,
                      bool&                              theIsDumpCollected);
@@ -1560,7 +1560,7 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
 //=============================================================================
 void ReplaceEntriesByNames (TCollection_AsciiString&                  theScript,
                             TSting2ObjDataMap&                        aEntry2ObjData,
-                            const bool                                theIsPublished,
+                            const bool                                /*theIsPublished*/,
                             TColStd_SequenceOfAsciiString&            theObjListToPublish,
                             Standard_Integer&                         objectCounter,
                             Resource_DataMapOfAsciiStringAsciiString& aNameToEntry)
index 88f1360c587a82ebeb29807512980b9e0bd5630c..9c35c95cb320ba1701c827d10ecf9b140cebdece 100644 (file)
@@ -756,5 +756,5 @@ const Standard_GUID& GEOM_FieldStep::GetDataID()
   return TDataStd_ExtStringArray::GetID();
 }
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOM_Field, GEOM_BaseObject );
-IMPLEMENT_STANDARD_RTTIEXT(GEOM_FieldStep, GEOM_BaseObject );
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_Field, GEOM_BaseObject )
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_FieldStep, GEOM_BaseObject )
index 288fafd06ca292a9f08a6679464ab75f0902b0e2..2d9d3a96c2406c8e04c93491f4a9118048314eff 100644 (file)
@@ -33,8 +33,8 @@ const int GEOM_FIELD_STEP_OBJTYPE = 53;
 
 class GEOM_Field;
 class GEOM_FieldStep;
-DEFINE_STANDARD_HANDLE( GEOM_Field, GEOM_BaseObject );
-DEFINE_STANDARD_HANDLE( GEOM_FieldStep, GEOM_BaseObject );
+DEFINE_STANDARD_HANDLE( GEOM_Field, GEOM_BaseObject )
+DEFINE_STANDARD_HANDLE( GEOM_FieldStep, GEOM_BaseObject )
 
 class GEOM_Field : public GEOM_BaseObject
 {
index 7255929392784ffe37a3254761e6b4d5b36b31fe..4d7aed766852c3e00526f80322d3d4bde25423d6 100644 (file)
@@ -977,4 +977,4 @@ void* GEOM_Function::GetCallBackData()
   return reinterpret_cast<void*> ( address );
 }
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOM_Function, Standard_Transient );
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_Function, Standard_Transient )
index 2328aa475f6986b83d4351244cd005680b1d7a3a..1b5f5fbaeeca2181b3e98413db0a90dc270b30ad 100644 (file)
@@ -37,7 +37,7 @@
 #include <TopoDS_Shape.hxx>
 
 class GEOM_Function;
-DEFINE_STANDARD_HANDLE (GEOM_Function, Standard_Transient);
+DEFINE_STANDARD_HANDLE (GEOM_Function, Standard_Transient)
 
 class GEOM_Function : public Standard_Transient
 {
index fda134620639d9760b76cdcd5288f27ff8f62588..b8145b1acca0c9e51f12ba71830356f56ddc0ab7 100644 (file)
@@ -296,5 +296,5 @@ GEOM_Object::GetLastFunctions( const std::list< Handle(GEOM_Object) >& theObject
   return funs;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOM_Object, GEOM_BaseObject );
+IMPLEMENT_STANDARD_RTTIEXT(GEOM_Object, GEOM_BaseObject )
 
index 42f89e0997d4655a5d5fa9d248aad12e5afdfdd2..06f54ae3ef6a5775fb9dd5f2ea14c844396e2014 100644 (file)
@@ -37,7 +37,7 @@ class GEOM_Object;
 class TFunction_Driver;
 class GEOM_Engine;
 
-DEFINE_STANDARD_HANDLE( GEOM_Object, GEOM_BaseObject );
+DEFINE_STANDARD_HANDLE( GEOM_Object, GEOM_BaseObject )
 
 class GEOM_Object : public GEOM_BaseObject
 {
index acfd8d21e4c40f5b40601ac61e287690d1ee20be..aca09678a6ed7625d144f67c8634edd0045ddafc 100644 (file)
@@ -34,7 +34,7 @@
  *  Update
  */
 //=============================================================================
-bool GEOM_Solver::Update(TDF_LabelSequence& theSeq)
+bool GEOM_Solver::Update(TDF_LabelSequence& /*theSeq*/)
 {
   return false;
 } 
@@ -44,7 +44,7 @@ bool GEOM_Solver::Update(TDF_LabelSequence& theSeq)
  *  UpdateObject
  */
 //=============================================================================
-bool GEOM_Solver::UpdateObject(Handle(GEOM_Object) theObject, TDF_LabelSequence& theSeq)
+bool GEOM_Solver::UpdateObject(Handle(GEOM_Object) /*theObject*/, TDF_LabelSequence& /*theSeq*/)
 {
   return false;
 }
index a267469dd6644f002e53e8371b50452c7f046659..3084f3376d97f4d7a05a2110bce36f1053ee762e 100644 (file)
@@ -155,4 +155,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOM_SubShapeDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOM_SubShapeDriver,GEOM_BaseDriver)
index d38b92a90463cdf945cf2674ca3e03e5cdc16a2a..8520bb278bcc4722b5f86c42a38779181eb467db 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOM_SubShapeDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOM_SubShapeDriver, GEOM_BaseDriver )
 
 class GEOM_SubShapeDriver : public GEOM_BaseDriver {
 
index eeccb2fe8e156a1e5c0b205e8f0c20ee41e4422f..cc9d6d3bf6ea326084706138fc071d937311e3ad 100644 (file)
@@ -27,7 +27,7 @@
 //
 #include <GEOMAlgo_Clsf.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_Clsf, GEOMAlgo_HAlgo);
+IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_Clsf, GEOMAlgo_HAlgo)
 
 //=======================================================================
 //function :
index 4244309b2381878a69d54fc5b99f4b282dee54c9..cfd1de4ed21cfa72636afa32c543cbc22e18f91a 100644 (file)
@@ -39,7 +39,7 @@
 #include <Geom_Curve.hxx>
 #include <Geom_Surface.hxx>
 
-DEFINE_STANDARD_HANDLE(GEOMAlgo_Clsf, GEOMAlgo_HAlgo);
+DEFINE_STANDARD_HANDLE(GEOMAlgo_Clsf, GEOMAlgo_HAlgo)
 
 //=======================================================================
 //class    : GEOMAlgo_Clsf
index 4c0e66a56bc97a8898a5a58bc3657d6f6efe0e7a..8be5f121f10e4c15cae211ebc24e6818b1d448ee 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <Geom_Plane.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfQuad, GEOMAlgo_Clsf);
+IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfQuad, GEOMAlgo_Clsf)
 
 //=======================================================================
 //function :
index b24d17b59bceb94828e0365c92fd96a20a65b670..598e477c97694297cc9d65cc23e84f860d44c1e6 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <GEOMAlgo_SurfaceTools.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfSurf, GEOMAlgo_Clsf);
+IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfSurf, GEOMAlgo_Clsf)
 
 //=======================================================================
 //function :
index 2539620893a8464ee1b62da2d8cd5a69ea1bd995..c73c603f029815f78111681afad9d851b37e5b95 100644 (file)
@@ -344,7 +344,7 @@ void GEOMAlgo_FinderShapeOn2::ProcessEdges()
   //
   Standard_Boolean bIsConformState, bIsToBreak;
   Standard_Integer i, aNb, iCnt, iErr;
-  TopAbs_State aSt;
+  TopAbs_State aSt = TopAbs_UNKNOWN; // todo: aSt must be explicitly initilized to avoid warning (see below)
   TopTools_IndexedMapOfShape aM;
   TopExp_Explorer aExp;
   GEOMAlgo_ListIteratorOfListOfPnt aIt;
@@ -378,7 +378,7 @@ void GEOMAlgo_FinderShapeOn2::ProcessEdges()
     }
     //
     if (BRep_Tool::Degenerated(aE)) {
-      myMSS.Add(aE, aSt);
+      myMSS.Add(aE, aSt); // todo: aSt must be explicitly initilized to avoid warning (see above)
       continue;
     }
     //
index 9bf5f047f846098a737e8123b14405d9531a66ff..be34413060d6c8b3576f359ec87255ae162fb7c7 100644 (file)
@@ -260,7 +260,7 @@ gp_Vec GEOMAlgo_GetInPlaceAPI::GetNormal
 
     return du ^ dv;
 
-  } catch (Standard_Failure ) {
+  } catch (Standard_Failure&) {
   }
   return defaultNorm;
 }
index d0b939ce8501bb234abef2addefcdd4cccbf74e0..5edc7f4e4471ab9e9e0e448e47209110af81fdf0 100644 (file)
@@ -27,7 +27,7 @@
 //
 #include <GEOMAlgo_HAlgo.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_HAlgo, Standard_Transient);
+IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_HAlgo, Standard_Transient)
 
 //=======================================================================
 // function:
index a1afce8f958363fd436895af980d1a7358cc9b88..58fa9c4503fe6264ded62afc8ccb6dd23ed668ef 100644 (file)
@@ -34,7 +34,7 @@
 #include <Standard_Integer.hxx>
 #include <Standard_Transient.hxx>
 
-DEFINE_STANDARD_HANDLE(GEOMAlgo_HAlgo, Standard_Transient);
+DEFINE_STANDARD_HANDLE(GEOMAlgo_HAlgo, Standard_Transient)
 
 //=======================================================================
 //class    : GEOMAlgo_HAlgo
index e355bef5b1b9d2566806dbab51fedb85b12df7f9..bd07bc5b47d0b9d20b3112005c468ee0d64d9093 100644 (file)
@@ -300,7 +300,7 @@ void GEOMAlgo_ShellSolid::Perform()
     }//for (i=iBeg; i<=iEnd; ++i) {
     
   }// try
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     myErrorStatus=12;
   }
 }
index 8aa1ec25de892a238fd3105f7560abd017866d4f..19a914411bc1c5a5fa9ec98b1eea4a8f33c2fc61 100644 (file)
@@ -91,7 +91,7 @@ void GEOMAlgo_SolidSolid::Perform()
     myRank=2;
     BuildResult();
   }
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     myErrorStatus=12;
   }
 }
index 8c51619e0a093af867179bbdd416f197623cf3d3..2ddeaf9f29394602b6ec2e6407723f6722cc6f74 100644 (file)
@@ -109,7 +109,7 @@ void GEOMAlgo_VertexSolid::Perform()
     BuildResult();
   }
   //
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     myErrorStatus = 12;
   }
 }
index 14ba36b1f1f8e816496ce94fad9b56918fee0fb5..75eafd7220f7522f78db554cc879b86292ab1ccc 100644 (file)
@@ -90,7 +90,7 @@ void GEOMAlgo_WireSolid::Perform()
     BuildResult();
   }
   //
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     myErrorStatus= 12;
   }
 }
index 883dba0d3b2b117a691e9d3d27622fdd236965bd..d91905c85840668c0aff45c3e1e5230e733c7f1f 100644 (file)
@@ -307,7 +307,7 @@ Handle(GEOM_AISShape) GEOMBase::ConvertIORinGEOMAISShape(const QString& IOR, boo
             if ( it.Value()->IsInstance( STANDARD_TYPE(GEOM_AISShape) ) ) {
               Handle(GEOM_AISShape) sh = Handle(GEOM_AISShape)::DownCast( it.Value() );
               if ( !sh.IsNull() && sh->hasIO() ) {
-                Handle(SALOME_InteractiveObject) IO = Handle(SALOME_InteractiveObject)::DownCast( sh->getIO() );
+                Handle(SALOME_InteractiveObject) IO = sh->getIO();
                 if ( !IO.IsNull() && IO->hasEntry() && obj->GetID() == IO->getEntry() )
                   shape = sh;
               }
@@ -354,7 +354,7 @@ GEOM_Actor* GEOMBase::ConvertIORinGEOMActor(const QString& IOR, bool onlyInActiv
             if ( a->IsA( "GEOM_Actor" ) ) {
               GEOM_Actor* ga = GEOM_Actor::SafeDownCast( a );
               if ( ga && ga->hasIO() ) {
-                Handle(SALOME_InteractiveObject) IO = Handle(SALOME_InteractiveObject)::DownCast( ga->getIO() );
+                Handle(SALOME_InteractiveObject) IO = ga->getIO();
                 if ( !IO.IsNull() && IO->hasEntry() && obj->GetID() == IO->getEntry() )
                   actor = ga;
               }
@@ -374,7 +374,7 @@ GEOM_Actor* GEOMBase::ConvertIORinGEOMActor(const QString& IOR, bool onlyInActiv
 // purpose  :
 //=======================================================================
 Handle(AIS_InteractiveObject) GEOMBase::GetAIS( const Handle(SALOME_InteractiveObject)& IO,
-                                                bool onlyInActiveView, bool onlyGeom )
+                                                bool onlyInActiveView, bool /*onlyGeom*/ )
 {
   Handle(AIS_InteractiveObject) aisObject;
 
@@ -524,7 +524,7 @@ TopoDS_Shape GEOMBase::CreateArrowForLinearEdge( const TopoDS_Shape& shape )
         }
       }
     }
-    catch ( Standard_Failure ) {
+    catch ( Standard_Failure& ) {
       // OCC failures are hard to catch in GUI.
       // This is because of the position for #include <Standard_ErrorHandler.hxx> that is very critical to find
       // in SALOME environment : compilation error !
index 9361f22756afed85a0b55282bb67ac8603246f0a..6193a3e67f687fc687fc6574dff7845fb80290b7 100644 (file)
@@ -1038,7 +1038,7 @@ bool GEOMBase_Helper::isValid( QString& )
 //            It should perform the required operation and put all new or modified objects into
 //            <objects> argument.Should return <false> if some error occurs during its execution.
 //================================================================
-bool GEOMBase_Helper::execute( ObjectList& objects )
+bool GEOMBase_Helper::execute( ObjectList& )
 {
   return false;
 }
@@ -1049,7 +1049,7 @@ bool GEOMBase_Helper::execute( ObjectList& objects )
 //            for <theObj> or a nil reference if <theObj> should be published
 //            as a top-level object.
 //================================================================
-GEOM::GEOM_Object_ptr GEOMBase_Helper::getFather( GEOM::GEOM_Object_ptr theObj )
+GEOM::GEOM_Object_ptr GEOMBase_Helper::getFather( GEOM::GEOM_Object_ptr )
 {
   return GEOM::GEOM_Object::_nil();
 }
@@ -1058,7 +1058,7 @@ GEOM::GEOM_Object_ptr GEOMBase_Helper::getFather( GEOM::GEOM_Object_ptr theObj )
 // Function : getObjectName
 // Purpose  : Redefine this method to return proper name for the given object
 //================================================================
-QString GEOMBase_Helper::getObjectName(GEOM::GEOM_Object_ptr object) const
+QString GEOMBase_Helper::getObjectName( GEOM::GEOM_Object_ptr ) const
 {
   return QString();
 }
@@ -1067,7 +1067,7 @@ QString GEOMBase_Helper::getObjectName(GEOM::GEOM_Object_ptr object) const
 // Function : getNewObjectName
 // Purpose  : Redefine this method to return proper name for a new object
 //================================================================
-QString GEOMBase_Helper::getNewObjectName (int) const
+QString GEOMBase_Helper::getNewObjectName( int ) const
 {
   return QString();
 }
index 3e97e7b0f57d3f1b60f3c5de8e704dca64e0e88c..594005a5a53eacdbf987d2cf875ce2d083e5c327 100644 (file)
@@ -90,7 +90,7 @@ namespace
            QString( ":" ) + QString( "ShapeType=" ) + QString::number( theShapeType ) +
            QString( " }" );
   }
-};
+}
 
 //=================================================================================
 // function : FindAttributes
index 2423e48cef7929ce53f3650402243eb2997a8971..e6df62dda207ef1cb5134d8b36432b75a6bbbcb4 100644 (file)
@@ -205,9 +205,8 @@ private:
   : myObj( theObject ),
     myParameterMap( theParameter ) {}
 
-  GEOMGUI_AnnotationAttrs( const GEOMGUI_AnnotationAttrs& theOther ) {}
-
-  void operator=( const GEOMGUI_AnnotationAttrs& theOther ) {}
+  GEOMGUI_AnnotationAttrs( const GEOMGUI_AnnotationAttrs& ); // private copy constructor, must be never called
+  void operator=( const GEOMGUI_AnnotationAttrs& ); // private assignment operator, must be never called
 
 private:
 
index 30a92ee4b4f8c0c60a55872e022a3b35ee456746..0a6c9d3439a772651c3868f86fbbbc7990d18796 100644 (file)
@@ -45,7 +45,7 @@ class GEOM_Displayer;
  */
 class GEOMGUI_EXPORT GEOMGUI_AnnotationMgr : public QObject
 {
-  Q_OBJECT;
+  Q_OBJECT
 
 public:
   GEOMGUI_AnnotationMgr( SalomeApp_Application* theApplication );
index 110f4531b3923de47b4608a316a15ac68233576c..71f79bfbf1b595de91b948856886af614fbad334 100644 (file)
@@ -106,7 +106,7 @@ void GEOMGUI_CreationInfoWdg::setInfo( GEOM::CreationInformationSeq& info )
 
   try
   {
-    if ( &info && info.length() > 0 )
+    if ( info.length() > 0 )
     {
       SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
       for ( int j = 0, nb = info.length(); j < nb; ++j )
index 6820e4bf9f4c4943986b746fc9b277a6cb1b6955..924b64aeb631118f7570033b79f4fd23f4169a5b 100644 (file)
@@ -44,7 +44,7 @@ class SalomeApp_Application;
  */
 class GEOMGUI_EXPORT GEOMGUI_CreationInfoWdg : public QWidget
 {
-  Q_OBJECT;
+  Q_OBJECT
 
  public:
   GEOMGUI_CreationInfoWdg( SalomeApp_Application* app );
index c57d1335c9feeb710c40b2763a43f1b223ef080c..5e2bfde3c42ad1d504bfc5c0f56acac54af6319e 100644 (file)
@@ -68,7 +68,7 @@ namespace
     PATTERN_XYZ.arg( "Point1" ) + ":" +
     PATTERN_XYZ.arg( "Point2" ) + ":" +
     PATTERN_XYZ.arg( "Point3" );
-};
+}
 
 //=================================================================================
 // function : Length::Init
index c57d988a400670729e1338fa182ebfa2abf48a00..639a8be4241037047c97acf543d241a9de3cf651 100644 (file)
@@ -504,6 +504,6 @@ private:
   VectorOfRecords            myRecords;
 };
 
-Q_DECLARE_METATYPE(GEOMGUI_DimensionProperty);
+Q_DECLARE_METATYPE(GEOMGUI_DimensionProperty)
 
 #endif
index eea733efa084d43a185d675a210e9b54c3de4bb7..de1e212431afb7f73cae732876a8ac0dead1f9b1 100644 (file)
@@ -86,7 +86,7 @@ void GEOMGUI_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
     for (ic->InitSelected(); ic->MoreSelected(); ic->NextSelected())
     {
 
-      Handle(AIS_InteractiveObject) io = Handle(AIS_InteractiveObject)::DownCast( ic->SelectedInteractive() );
+      Handle(AIS_InteractiveObject) io = ic->SelectedInteractive();
 
       QString entryStr = entry(io);
       int index = -1;
@@ -114,13 +114,13 @@ void GEOMGUI_OCCSelector::getSelection( SUIT_DataOwnerPtrList& aList ) const
       if (!entryStr.isEmpty())
       {
         Handle(SALOME_InteractiveObject) anIO = Handle(SALOME_InteractiveObject)::DownCast(io->GetOwner()); 
-        LightApp_DataOwner* owner;
+        LightApp_DataOwner* owner = 0;
         if (index > -1) // Local Selection
           owner = new LightApp_DataSubOwner (entryStr, index);
         else if ( !anIO.IsNull() ) // Global Selection
           owner = new LightApp_DataOwner( anIO );
-
-        aList.append(SUIT_DataOwnerPtr(owner));
+        if ( owner )
+          aList.append(SUIT_DataOwnerPtr(owner));
       }
     }
 
@@ -164,8 +164,7 @@ static void getEntityOwners( const Handle(AIS_InteractiveObject)& theObj,
       if ( entity.IsNull() )
         continue;
 
-      Handle(SelectMgr_EntityOwner) owner =
-        Handle(SelectMgr_EntityOwner)::DownCast(entity->OwnerId());
+      Handle(SelectMgr_EntityOwner) owner = entity->OwnerId();
       if ( !owner.IsNull() )
         theMap.Add( owner );
     }
@@ -323,7 +322,7 @@ void GEOMGUI_OCCSelector::setSelection( const SUIT_DataOwnerPtrList& aList )
   for  (; i <= n; i++)
   {
     Handle(SelectMgr_EntityOwner) owner = ownersmap( i );
-    if ( owner->State() )
+    if ( owner->IsSelected() )
       continue;
 
     if ( owner->ComesFromDecomposition() )
index b893df68e51afef630292f42c6747c2308544961..445616c4838616100c472cd966ca3fbfb4cc8c3a 100644 (file)
@@ -395,7 +395,7 @@ void GEOMGUI_TextTreeWdg::fillBranch( const BranchType& theBranchType, const QSt
 //=================================================================================
 QSharedPointer<GEOMGUI_TextTreeWdg::VisualProperty>
   GEOMGUI_TextTreeWdg::getVisualProperty( const BranchType& theBranchType,
-                                          SalomeApp_Study* theStudy,
+                                          SalomeApp_Study* /*theStudy*/,
                                           const std::string& theEntry )
 {
   switch ( theBranchType )
index abd978501cc63f8ee8adb8f8083e41039e5e1259..808e735aa3d74ee10f4102d47d71a42277631af9 100644 (file)
@@ -396,7 +396,7 @@ SUIT_SelectionFilter* GEOM_Displayer::getFilter( const int theMode )
 //================================================================
 SUIT_SelectionFilter* GEOM_Displayer::getComplexFilter( const QList<int>* aSubShapes)
 {
-  GEOM_CompoundFilter* aFilter;
+  GEOM_CompoundFilter* aFilter = 0;
 
   if(aSubShapes != NULL ) {
     aFilter = new GEOM_CompoundFilter(getStudy());
@@ -1991,7 +1991,7 @@ void GEOM_Displayer::GlobalSelection( const TColStd_MapOfInteger& theModes,
       QList<SUIT_SelectionFilter*> aListOfFilters;
       for ( ; anIter.More(); anIter.Next() )
         {
-          SUIT_SelectionFilter* aFilter;
+          SUIT_SelectionFilter* aFilter = 0;
           int aMode = anIter.Key();
           if ( aMode == GEOM_COMPOUNDFILTER )
             aFilter = getComplexFilter( theSubShapes );
index e2efd421f53d64db9f716cc7c5ac73847909c5fb..b210fc50eb9cdb0ebe3a82c063b5641fbdbd7e77 100644 (file)
@@ -72,7 +72,7 @@ class GEOMGUI_AnnotationMgr;
 //=================================================================================
 class  GEOMGUI_EXPORT GeometryGUI : public SalomeApp_Module
 {
-  Q_OBJECT;
+  Q_OBJECT
 
 public:
   // Constructor
index 7a79e195c98c9636382607e05ba6e3bafeb0a7ad..085b89af5a2d2b350301af12550b8403420d0346 100644 (file)
@@ -365,4 +365,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT(GEOMImpl_3DSketcherDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT(GEOMImpl_3DSketcherDriver,GEOM_BaseDriver)
index 6051a922abaf1c27511db8e7b4e1d195d2d1c032..51f1297b2ba0b370d19417f9ebc93b0a1cbd211c 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_3DSketcherDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_3DSketcherDriver, GEOM_BaseDriver )
 
 class GEOMImpl_3DSketcherDriver : public GEOM_BaseDriver {
 
index dc63e4da50a396cfea2bafb1faf9d54e98ee60de..76009d296497bbd5026a3b4ee09862c82fafa308 100644 (file)
@@ -203,4 +203,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ArcDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ArcDriver,GEOM_BaseDriver)
index fc37346e33cdd822df5a418541f12f0479346c49..9f31ea2d5b492ae921ede9408607d9d39354661c 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ArcDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ArcDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ArcDriver : public GEOM_BaseDriver {
 
index 39a333b043be144cddb9b7a04cbaae26dc5b1195..98c168e3a1f250e5e1339a173dec88132ebe8432 100644 (file)
@@ -168,4 +168,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ArchimedeDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ArchimedeDriver,GEOM_BaseDriver)
index c0e539bb0d80595484fe6429a72149241a019b31..7f65e06426ba73637761cb99e2bf42f16ae228ab 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ArchimedeDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ArchimedeDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ArchimedeDriver : public GEOM_BaseDriver {
 
index 15a547746fb44c225a0f0f69a811fba994f6b4fc..4cdc2a9248346276592cce7444034deb44880281 100644 (file)
 #include <TCollection_AsciiString.hxx>
 #include <gp_Trsf.hxx>
 
-  //  Class GEOMImpl_Block6Explorer gives easy and fast access to a certain sub-elements of hexahedral solid
-  //  Each face   can be accessed by its global ID [1-6]
-  //  Each edge   can be accessed by its global ID [1-12] or by its local NB [1-4] inside certain face
-  //  Each vertex can be accessed by its global ID [1-8] or  by its local NB [1-4] inside certain face
-  //  Numeration of the sub-shapes is defined in constructors, see they comments
-  //
-  //                  face 2       face 4          |           4 face     2 face                   |
-  //                       |           /           |            \         |                        |
-  //                      \|/        |/_           |            _\|      \|/                       |
-  //                       '         '             |              '       '                        |
-  //                    8_______7__7               |               7__7_______8                    |
-  //                   /|         /|               |               |\         |\                   |
-  //                  8 12       6 11              |              11 6       12 8                  |
-  //                 /  |       /  |               |               |  \       |  \                 |
-  //               5/______5__6/   |               |               |   \6__5______\5               |
-  //  face 5 --->  |    |     |    |  <--- 6 face  |  face 6 --->  |    |     |    |  <--- 5 face  |
-  //               |    |__3__|____|               |               |____|__3__|    |               |
-  //               |   /4     |   /3               |               3\   |     4\   |               |
-  //               |  /       |  /                 |                 \  |       \  |               |
-  //               9 4       10 2                  |                  2 10       4 9               |
-  //               |/__1______|/                   |                   \|______1__\|               |
-  //               1          2                    |                    2          1               |
-  //            _.        .                        |                        .       ._             |
-  //            /|       /|\                       |                       /|\      |\             |
-  //           /          |                        |                        |         \            |
-  //          3 face      1 face                   |                   face 1     face 3           |
-  //                                               |                                               |
-  //  Picture 1 (right orientation)                |  Picture 2 (left orientation)                 |
-  //                                                                                               |
-  //  For the moment, the orientation of numbering is not controlled
-
-  // Faces: 1 - bottom, 2 - top, 3 - front, 4 - back, 5 - left (right), 6 - right (left)
-
-  //
-  //                             4_______3__3         2 ______2__3
-  //                            /          /          |          |
-  //                           4          2           1          3
-  //                          /          /            |          |
-  //                        1/______1__2/             |          |
-  //                                                  |          |
-  //                                                  | __4______|
-  //                           face 2       face 4    1          4
-  //                                |           /
-  //                               \|/        |/_
-  //                                '         '
-  //        3                    8_______7__7                    3
-  //       /|                   /|         /|                   /|
-  //      3 2                  8 12       6 11                 3 2
-  //     /  |                 /  |       /  |                 /  |
-  //   4/   |               5/______5__6/   |               4/   |
-  //   |    |  face 5 --->  |    |     |    |  <--- 6 face  |    |
-  //   |    |               |    |__3__|____|               |    |
-  //   |   /2               |   /4     |   /3               |   /2
-  //   |  /                 |  /       |  /                 |  /
-  //   4 1                  9 4       10 2                  4 1
-  //   |/                   |/__1______|/                   |/
-  //   1                    1          2                    1
-  //                     _.        .
-  //                     /|       /|\
-  //                    /          |
-  //   2 ______2__3    3 face      1 face
-  //   |          |
-  //   |          |               __3_______
-  //   |          |             /4         /3
-  //   |          |            /          /
-  //   1          3           4          2
-  //   | __4______|          /__1______ /
-  //   1          4         1          2
-  //
-  //  Picture 3 (On periferal pictures the local
-  //  numeration of edges and vertices is shown)
+  /*  ======================================================================================================
+      Class GEOMImpl_Block6Explorer gives easy and fast access to a certain sub-elements of hexahedral solid
+      Each face   can be accessed by its global ID [1-6]
+      Each edge   can be accessed by its global ID [1-12] or by its local NB [1-4] inside certain face
+      Each vertex can be accessed by its global ID [1-8] or  by its local NB [1-4] inside certain face
+      Numeration of the sub-shapes is defined in constructors, see they comments
+
+                      face 2       face 4          |           4 face     2 face
+                           |           /           |            \         |
+                          \|/        |/_           |            _\|      \|/
+                           '         '             |              '       '
+                        8_______7__7               |               7__7_______8
+                       /|         /|               |               |\         |\
+                      8 12       6 11              |              11 6       12 8
+                     /  |       /  |               |               |  \       |  \
+                   5/______5__6/   |               |               |   \6__5______\5
+      face 5 --->  |    |     |    |  <--- 6 face  |  face 6 --->  |    |     |    |  <--- 5 face
+                   |    |__3__|____|               |               |____|__3__|    |
+                   |   /4     |   /3               |               3\   |     4\   |
+                   |  /       |  /                 |                 \  |       \  |
+                   9 4       10 2                  |                  2 10       4 9
+                   |/__1______|/                   |                   \|______1__\|
+                   1          2                    |                    2          1
+                _.        .                        |                        .       ._
+                /|       /|\                       |                       /|\      |\
+               /          |                        |                        |         \
+              3 face      1 face                   |                   face 1     face 3
+                                                   |
+      Picture 1 (right orientation)                |  Picture 2 (left orientation)
+
+      For the moment, the orientation of numbering is not controlled
+
+      Faces: 1 - bottom, 2 - top, 3 - front, 4 - back, 5 - left (right), 6 - right (left)
+
+
+                                 4_______3__3         2 ______2__3
+                                /          /          |          |
+                               4          2           1          3
+                              /          /            |          |
+                            1/______1__2/             |          |
+                                                      |          |
+                                                      | __4______|
+                               face 2       face 4    1          4
+                                    |           /
+                                   \|/        |/_
+                                    '         '
+            3                    8_______7__7                    3
+           /|                   /|         /|                   /|
+          3 2                  8 12       6 11                 3 2
+         /  |                 /  |       /  |                 /  |
+       4/   |               5/______5__6/   |               4/   |
+       |    |  face 5 --->  |    |     |    |  <--- 6 face  |    |
+       |    |               |    |__3__|____|               |    |
+       |   /2               |   /4     |   /3               |   /2
+       |  /                 |  /       |  /                 |  /
+       4 1                  9 4       10 2                  4 1
+       |/                   |/__1______|/                   |/
+       1                    1          2                    1
+                         _.        .
+                         /|       /|\
+                        /          |
+       2 ______2__3    3 face      1 face
+       |          |
+       |          |               __3_______
+       |          |             /4         /3
+       |          |            /          /
+       1          3           4          2
+       | __4______|          /__1______ /
+       1          4         1          2
+
+      Picture 3 (On periferal pictures the local
+      numeration of edges and vertices is shown)
+      ======================================================================================================  */
 
 class GEOMImpl_Block6Explorer
 {
index 2fc5648226ba2647f8d6826f8b75d9685c97dbae..24447382e3b76ef437c485e5a404266f43aeaeef 100644 (file)
@@ -1156,4 +1156,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_BlockDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_BlockDriver,GEOM_BaseDriver)
index 6695887cdde0eb530b708857728d27fe5320409a..366acf476ccdcd7dfd55ebea9e11a882d6e37908 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_BlockDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_BlockDriver, GEOM_BaseDriver )
 
 class GEOMImpl_BlockDriver : public GEOM_BaseDriver {
 
index 8b06f6fa2a2f232207246380f3da58efa9f1bd7e..b8af547abea6db3f27c5e84940603deeaefbd452 100644 (file)
@@ -703,4 +703,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_BooleanDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_BooleanDriver,GEOM_BaseDriver)
index a496dd7d4394f34740535ef48f0cfc20dd7d09cb..139236b34aa30f22163d2b6e821f4cd235530068 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_BooleanDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_BooleanDriver, GEOM_BaseDriver )
 
 class GEOMImpl_BooleanDriver : public GEOM_BaseDriver {
 
index d5716f9a0ba36859a322aca64cec9164bf930663..8d3c5b26f28f5a9baa9fb006fd18cca0bf538171 100644 (file)
@@ -156,4 +156,4 @@ bool GEOMImpl_BoxDriver::GetCreationInformation(std::string&             theOper
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_BoxDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_BoxDriver,GEOM_BaseDriver)
index 12203aeed72a907a882a905533a500fea3570a51..8b85d6932fc4de0b49bede305bb2b7ecab279c6e 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_BoxDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_BoxDriver, GEOM_BaseDriver )
 
 class GEOMImpl_BoxDriver : public GEOM_BaseDriver {
 
index dff71bfbd9cc2bb58dc8c6fb442a122c62b926a0..0009654b0b400001b78e07a07f5ad13f688017f8 100644 (file)
@@ -359,4 +359,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ChamferDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ChamferDriver,GEOM_BaseDriver)
index 640bd4190f7a2240002b6959e134ee5cd80777b7..dedc939aba8fd64fb83564bb35f27b4ae5bcab12 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ChamferDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ChamferDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ChamferDriver : public GEOM_BaseDriver {
 
index eddfbc2f3217cb0bd014db467d926ae90abe9eb2..56fb598c16803ee55273eac0588df7df0a091647 100644 (file)
@@ -233,4 +233,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_CircleDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_CircleDriver,GEOM_BaseDriver)
index b17152baefd26945b1d285ab9ca4570350b2c8a4..1805d2c426123ad01bb24ed0f043c0c13e0e9586 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_CircleDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_CircleDriver, GEOM_BaseDriver )
 
 class GEOMImpl_CircleDriver : public GEOM_BaseDriver {
 
index ae0d0d21f3301db780ac2e55011965f15baaddd9..aca8302b97efff93cdcd905efdd5b0322b5c648d 100644 (file)
@@ -181,4 +181,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ConeDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ConeDriver,GEOM_BaseDriver)
index 8ab500f776523f2e48bc231a8ba395b8d463bd54..02b7a88ad0cd707c47966d8023e6f332f6799cac 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ConeDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ConeDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ConeDriver : public GEOM_BaseDriver {
 
index 97fded87db23e768a49ac292a19bb5983fdffce6..9e592d02bdb5703877d86fd93e9618f092635a27 100644 (file)
@@ -146,7 +146,7 @@ GetCreationInformation(std::string&             theOperationName,
  * \brief Performs Transfer Data operation.
  */
 //================================================================================
-Standard_Integer GEOMImpl_CopyDriver::transferData(Handle(TFunction_Logbook)& log) const
+Standard_Integer GEOMImpl_CopyDriver::transferData(Handle(TFunction_Logbook)& /*log*/) const
 {
   Handle(GEOM_Function)  aFunction = GEOM_Function::GetFunction(Label());
   GEOMImpl_ITransferData aTD (aFunction);
@@ -410,4 +410,4 @@ Standard_Boolean GEOMImpl_CopyDriver::getInPlaceByHistory
   return Standard_True;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_CopyDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_CopyDriver,GEOM_BaseDriver)
index 57b759a5316e447de1d509b7b7d12d40814887d7..5cde98d1d138dbb2e01ba5054271689d44c3b3b1 100644 (file)
@@ -34,7 +34,7 @@
 class TopoDS_Shape;
 class Standard_GUID;
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_CopyDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_CopyDriver, GEOM_BaseDriver )
 
 class GEOMImpl_CopyDriver : public GEOM_BaseDriver {
 
index 26e2e19805e6be783903fce4459d0dae19487981..9193ab472f43c8c3fa5a515c5bdb34446cf52231 100644 (file)
@@ -194,4 +194,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_CylinderDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_CylinderDriver,GEOM_BaseDriver)
index 0f16096b29226334affab4bb9559e9f484a96c73..b0aeec271ed9026ced9970763c7157cdda1e2beb 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_CylinderDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_CylinderDriver, GEOM_BaseDriver )
 
 class GEOMImpl_CylinderDriver : public GEOM_BaseDriver {
 
index 46866c503e1f956b238a3dbd9513a98b0600d403..705e928b37020e203233d9f65d08dc614874ee4d 100644 (file)
@@ -210,4 +210,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_DiskDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_DiskDriver,GEOM_BaseDriver)
index 4f4cb69d29d249242a3eff933b263fa63ee87c7f..fd30605ada783facb898bdbfbd41d374545ea100 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_DiskDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_DiskDriver, GEOM_BaseDriver )
 
 class GEOMImpl_DiskDriver : public GEOM_BaseDriver {
 
index 206a610c7f32e729f2ee521ae6de660492c38e6d..cd451ba6d69e9fa433fe519a1c38e5f91c85520e 100644 (file)
@@ -192,4 +192,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_EllipseDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_EllipseDriver,GEOM_BaseDriver)
index a6680824b354f6ff20bf6a552a7737eabfba4331..4ffafb9189ccac41745ef7dc1e4822c2ffc66129 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_EllipseDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_EllipseDriver, GEOM_BaseDriver )
 
 class GEOMImpl_EllipseDriver : public GEOM_BaseDriver {
 
index 97dbaa331891fd7966ef8aa59b426304211a6407..37ff911321dbefb528f7873c76005071d4638135 100644 (file)
@@ -85,7 +85,7 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(Handle(TFunction_Logbook)& log)
   if (aFileName.IsEmpty() || aFormatName.IsEmpty() || aLibName.IsEmpty())
     return 0;
 
-  if( !GEOMImpl_IECallBack::GetCallBack( aFormatName )->Export( obj, aFileName, aFormatName ) );
+  if( !GEOMImpl_IECallBack::GetCallBack( aFormatName )->Export( obj, aFileName, aFormatName ) )
     return 0;
 
   log->SetTouched(Label());
@@ -100,10 +100,10 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(Handle(TFunction_Logbook)& log)
 //================================================================================
 
 bool GEOMImpl_ExportDriver::
-GetCreationInformation(std::string&             theOperationName,
-                       std::vector<GEOM_Param>& theParams)
+GetCreationInformation(std::string& /*theOperationName*/,
+                       std::vector<GEOM_Param>& /*theParams*/)
 {
   return false;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ExportDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ExportDriver,GEOM_BaseDriver)
index 9ab85b320720506bd0fcf79e73f386e21ea656d4..19c72bc7c9e2a76fd9eacbd4e999cfa7c0d04347 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ExportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ExportDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ExportDriver : public GEOM_BaseDriver {
 
index 88467586c676cbf70a3dd70785edeb35fa6c19e5..c0fddaad0e20c8b218455c3ad6a7ed911fc63256 100644 (file)
@@ -166,4 +166,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FaceDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FaceDriver,GEOM_BaseDriver)
index 4d31441052a4edc26f0b7d802d26074d5a08d90c..689d95a2403072f0f2699856013b9f897b1ff8c4 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_FaceDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_FaceDriver, GEOM_BaseDriver )
 
 class GEOMImpl_FaceDriver : public GEOM_BaseDriver {
 
index 51472a36c5eb0a52a9a53f03dd420b24918e48a4..d03dd6319f8a74d82bcf7c60253116c0bc66826e 100644 (file)
@@ -44,7 +44,7 @@ GEOMImpl_FieldDriver::GEOMImpl_FieldDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer GEOMImpl_FieldDriver::Execute(Handle(TFunction_Logbook)& log) const
+Standard_Integer GEOMImpl_FieldDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
 {
   return 0;
 }
@@ -105,4 +105,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FieldDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FieldDriver,GEOM_BaseDriver)
index 17c4656d40111560203c952d0064e70ef3a86185..c70fc3e42f2b3ba49c8d1af7d5e64e04dd294539 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_FieldDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_FieldDriver, GEOM_BaseDriver )
 
 /*!
  * \brief This class is needed only to retrieve creation information of GEOM_Field
index e42d30a0ecdcb658cd28a0cffa95b97cba0748ba..996603508ec3e17db460ce73a57a4921d0016a13 100644 (file)
@@ -578,7 +578,7 @@ TopoDS_Edge GEOMImpl_Fillet1d::Result(const gp_Pnt& thePoint,
   aTargetPoint2d.SetCoord(aX, aY);
 
   // choose the nearest circle
-  Standard_Real aDistance, aP;
+  Standard_Real aDistance = 0., aP; // todo: aDistance must be explicitly initialized to avoid warning (see below)
   GEOMImpl_Fillet1dPoint *aNearest;
   Standard_Integer a;
   TColStd_ListIteratorOfListOfReal anIter(myResultParams);
@@ -590,7 +590,7 @@ TopoDS_Edge GEOMImpl_Fillet1d::Result(const gp_Pnt& thePoint,
     if (!aPoint->HasSolution(myRadius))
       continue;
     aP = fabs(aPoint->GetCenter().Distance(aTargetPoint2d) - myRadius);
-    if (!aNearest || aP < aDistance)
+    if (!aNearest || aP < aDistance) // todo: aDistance must be explicitly initialized to avoid warning (see above)
     {
       aNearest = aPoint;
       aDistance = aP;
@@ -715,7 +715,7 @@ Standard_Boolean GEOMImpl_Fillet1dPoint::ComputeDifference(GEOMImpl_Fillet1dPoin
 {
   Standard_Integer a;
   Standard_Boolean aDiffsSet = (myD.Length() != 0);
-  Standard_Real aDX = thePoint->GetParam() - myParam, aDY;
+  Standard_Real aDX = thePoint->GetParam() - myParam, aDY = 0.; // todo: aDY must be explicitly initialized to avoid warning (see below)
   if (thePoint->myV.Length() == myV.Length())
   { // absolutely the same points
     for(a = 1; a <= myV.Length(); a++)
@@ -746,7 +746,7 @@ Standard_Boolean GEOMImpl_Fillet1dPoint::ComputeDifference(GEOMImpl_Fillet1dPoin
     }
     else
     {
-      myD.Append( fabs(aDX) > gp::Resolution() ? aDY/aDX : 0);
+      myD.Append( fabs(aDX) > gp::Resolution() ? aDY/aDX : 0); // todo: aDY must be explicitly initialized to avoid warning (see above)
     }
   }
 
index da6b0213635f432e7c67162ec737a7ce82d3f175..590354fd9e45c8a365116cbac7639f8f1a56fc37 100644 (file)
@@ -125,7 +125,7 @@ static Standard_Boolean takePlane( const TopoDS_Edge& theE1,
       return false;
     thePlane = gp_Pln( gp_Pnt(aXYZ), aDir1^ aDir2);
   }
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     return false;
   }
   return true;
@@ -445,4 +445,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_Fillet1dDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_Fillet1dDriver,GEOM_BaseDriver)
index 7d727dd7af8c1895dc4f7f840ff9a133358016e0..3eab0834e48c16fc403a6e8f0678112af8497649 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_Fillet1dDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_Fillet1dDriver, GEOM_BaseDriver )
 
 class GEOMImpl_Fillet1dDriver : public GEOM_BaseDriver {
 
index 8d3b6956409f4c4372317c6eb04a2f3b84744e33..0a84266960a503185accae18dc9151e00e11aa80 100644 (file)
@@ -205,4 +205,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_Fillet2dDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_Fillet2dDriver,GEOM_BaseDriver)
index ab0f44369087e2fb39c188e3d2f0f3d52f524133..315ff48e69aa0db57c06b1290fa1522178984690 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_Fillet2dDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_Fillet2dDriver, GEOM_BaseDriver )
 
 class GEOMImpl_Fillet2dDriver : public GEOM_BaseDriver {
 
index b79a54c27f0b4e0c4cdbf141a69b8b96ebb8c926..bdb8a77a833b66d941537519a3842c0c155d4a67 100644 (file)
@@ -214,4 +214,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FilletDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FilletDriver,GEOM_BaseDriver)
index 18b4e2d291e6939b12b6df41a3ed43ef5fedf90a..8676b094541e2c80097d3e49a49397bfc2c6a46d 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_FilletDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_FilletDriver, GEOM_BaseDriver )
 
 class GEOMImpl_FilletDriver : public GEOM_BaseDriver {
 
index 7fda25c8b45618e8f3d91fcd217633c10cf7715f..744b3256770a4280261254de7d861e746b557ac9 100644 (file)
@@ -407,4 +407,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FillingDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_FillingDriver,GEOM_BaseDriver)
index ef61116c31b18cfac3748ea536d347698ccfdef0..b335607eda59eed4c6e7fcbf54cae3c8d0188d3c 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_FillingDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_FillingDriver, GEOM_BaseDriver )
 
 class GEOMImpl_FillingDriver : public GEOM_BaseDriver {
 
index 7b051b58140c37c50ce169fab01c647b8340d80e..6fdc5a7cce64eeed9ab10ac5805b5fd7d647eef9 100644 (file)
@@ -880,4 +880,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_GlueDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_GlueDriver,GEOM_BaseDriver)
index 62bc51dd75e5369ec58ef9f53ddc5bbc353925a6..ac6dc48a1d0c67b75c7e459a0057b17963f6f336 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_GlueDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_GlueDriver, GEOM_BaseDriver )
 
 class GEOMImpl_GlueDriver : public GEOM_BaseDriver {
 
index a48f355f3237224943894a07b7864cf0d6e543e4..77b9b3842febfb365eb50bbc4a60552c325dbd00 100644 (file)
@@ -69,10 +69,10 @@ void raiseNotDoneExeption( const int theErrorStatus )
 {
   switch ( theErrorStatus )
   {
-  case ShHealOper_NotError:           StdFail_NotDone::Raise( "ShHealOper_NotError_msg" );
-  case ShHealOper_InvalidParameters:  StdFail_NotDone::Raise( "ShHealOper_InvalidParameters_msg" );
+  case ShHealOper_NotError:           StdFail_NotDone::Raise( "ShHealOper_NotError_msg" ); break;
+  case ShHealOper_InvalidParameters:  StdFail_NotDone::Raise( "ShHealOper_InvalidParameters_msg" ); break;
   case ShHealOper_ErrorExecution:
-  default:                            StdFail_NotDone::Raise( "ShHealOper_ErrorExecution_msg" );
+  default:                            StdFail_NotDone::Raise( "ShHealOper_ErrorExecution_msg" ); break;
   }
 }
 
@@ -610,7 +610,7 @@ Standard_Boolean GEOMImpl_HealingDriver::AddPointOnEdge (GEOMImpl_IHealing*  the
 //function :  ChangeOrientation
 //purpose  :
 //=======================================================================
-Standard_Boolean GEOMImpl_HealingDriver::ChangeOrientation (GEOMImpl_IHealing* theHI,
+Standard_Boolean GEOMImpl_HealingDriver::ChangeOrientation (GEOMImpl_IHealing* /*theHI*/,
                                                             const TopoDS_Shape& theOriginalShape,
                                                             TopoDS_Shape& theOutShape) const
 {
@@ -1157,4 +1157,4 @@ void GEOMImpl_HealingDriver::SaveStatistics( const ShHealOper_Tool& healer, bool
     *stats = healer.GetStatistics();
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_HealingDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_HealingDriver,GEOM_BaseDriver)
index f345f991502ae32017d17ef1ef2f979defe4b878..128508aac3e5c62c88474dc64ee04543a91ac94f 100644 (file)
@@ -36,7 +36,7 @@ class GEOMImpl_IHealing;
 class ShHealOper_Tool;
 
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_HealingDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_HealingDriver, GEOM_BaseDriver )
 
 class GEOMImpl_HealingDriver : public GEOM_BaseDriver {
 
index 2ff2beb885b487a1fbe0a0b30f2b5f60936019cc..5dfb1dae4b5a44c5fe1ce7e94d19d419bd65f114 100644 (file)
@@ -2072,7 +2072,7 @@ Standard_Boolean HasAnyConnection (const Standard_Integer         theBlockIndex,
  */
 //=============================================================================
 TCollection_AsciiString GEOMImpl_IBlocksOperations::PrintBCErrors
-                                                (Handle(GEOM_Object)  theCompound,
+                                                 (Handle(GEOM_Object) /*theCompound*/,
                                                  const std::list<BCError>& theErrors)
 {
   TCollection_AsciiString aDescr;
index f9465c0a71b489d516bf58dd7fa3d9d5db775985..02e6c7e8ee753e6c2f5a1dcee421489149f528fb 100644 (file)
@@ -106,13 +106,13 @@ namespace
   static PyMethodDef PyStdOut_methods[] = {
     {"write",  (PyCFunction)PyStdOut_write,  METH_VARARGS,
      PyDoc_STR("write(string) -> None")},
-    {NULL,    NULL}   /* sentinel */
+    {0, 0, 0, 0}   /* sentinel */
   };
 
   static PyMemberDef PyStdOut_memberlist[] = {
     {(char*)"softspace", T_INT,  offsetof(PyStdOut, softspace), 0,
      (char*)"flag indicating that a space needs to be printed; used by print"},
-    {NULL} /* Sentinel */
+    {0, 0, 0, 0, 0}   /* sentinel */
   };
   
   static PyTypeObject PyStdOut_Type = {
index ac088a46d5f0c2f7fa87f576be891194805f9419..f180051ccda2142a06d812fd104bf7b700856f41 100644 (file)
@@ -1142,7 +1142,7 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::UnionListOfGroups
     return NULL;
   }
 
-  TopAbs_ShapeEnum aType, aType_i;
+  TopAbs_ShapeEnum aType = TopAbs_SHAPE, aType_i;   // todo: refactor: aType must be initialized to avoid warning (see below)
   TDF_Label aLabel, aLabel_i;
   TColStd_ListOfInteger aNewIDs;
   TColStd_MapOfInteger mapIDs;
@@ -1160,7 +1160,7 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::UnionListOfGroups
       aType = aType_i;
     else {
       if (aType_i != aType) {
-        if (aType != TopAbs_SHAPE && aType != TopAbs_COMPOUND) {
+        if (aType != TopAbs_SHAPE && aType != TopAbs_COMPOUND) { // todo: refactor: aType must be initialized to avoid warning (see above)
           if (aType_i == TopAbs_SHAPE || aType_i == TopAbs_COMPOUND)
             aType = aType_i;
           else {
@@ -1257,7 +1257,7 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::IntersectListOfGroups
     return NULL;
   }
 
-  TopAbs_ShapeEnum aType, aType_i;
+  TopAbs_ShapeEnum aType = TopAbs_SHAPE, aType_i; // todo: refactor: aType must be initialized to avoid warning (see below)
   TDF_Label aLabel, aLabel_i;
   TColStd_ListOfInteger aNewIDs;
   TColStd_MapOfInteger mapIDs;
@@ -1275,7 +1275,7 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::IntersectListOfGroups
       aType = aType_i;
     else {
       if (aType_i != aType) {
-        if (aType != TopAbs_SHAPE && aType != TopAbs_COMPOUND) {
+        if (aType != TopAbs_SHAPE && aType != TopAbs_COMPOUND) { // todo: refactor: aType must be initialized to avoid warning (see above)
           if (aType_i == TopAbs_SHAPE || aType_i == TopAbs_COMPOUND)
             aType = aType_i;
           else {
@@ -1398,7 +1398,7 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::CutListOfGroups
     return NULL;
   }
 
-  TopAbs_ShapeEnum aType, aType_i;
+  TopAbs_ShapeEnum aType = TopAbs_SHAPE, aType_i; // todo: refactor: aType must be initialized to avoid warning (see below)
   TDF_Label aLabel, aLabel_i;
   TColStd_ListOfInteger aNewIDs;
   TColStd_MapOfInteger mapIDs;
@@ -1470,7 +1470,7 @@ Handle(GEOM_Object) GEOMImpl_IGroupOperations::CutListOfGroups
       aType = aType_i;
     else {
       if (aType_i != aType) {
-        if (aType != TopAbs_SHAPE && aType != TopAbs_COMPOUND) {
+        if (aType != TopAbs_SHAPE && aType != TopAbs_COMPOUND) { // todo: refactor: aType must be initialized to avoid warning (see above)
           if (aType_i == TopAbs_SHAPE || aType_i == TopAbs_COMPOUND)
             aType = aType_i;
           else {
index 07f4e985f7dd40f1e7549c49fa7f1be06cb5efaa..a5bc21fa0c60f59e7ad068db16e33308b5697527 100644 (file)
@@ -106,4 +106,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ImportDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ImportDriver,GEOM_BaseDriver)
index ce2737286694401b4b11be8314afb54311111f8f..369b548a12253ad471583ad3ba29dd8c603eae2c 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ImportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ImportDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ImportDriver : public GEOM_BaseDriver {
 
index 5f7b01ff17027836ce9078affad04e631fab228b..e09d3cb056d2bb0e8496e6e8da2daace2497542e 100644 (file)
@@ -220,4 +220,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_LineDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_LineDriver,GEOM_BaseDriver)
index 2c2a344bf2872cd03ca34b137d23cba401b14dd0..5fe63c55391a1e9de175c0bbbbf8ad0e6e0c4aac 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_LineDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_LineDriver, GEOM_BaseDriver )
 
 class GEOMImpl_LineDriver : public GEOM_BaseDriver {
 
index 8316a2d64b112b32b54dcc458e09464ea48f1982..4d72e358da51876784ef9431548570e5cbf5de8e 100644 (file)
@@ -207,4 +207,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_MarkerDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_MarkerDriver,GEOM_BaseDriver)
index 9b1f05bbcb2cd35382410aaf56e446b019f661fb..10a06ceb65435d817d433d41f1a2fc628f462677 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_MarkerDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_MarkerDriver, GEOM_BaseDriver )
 
 class GEOMImpl_MarkerDriver : public GEOM_BaseDriver {
 
index 5a8f61ffb0b6b87cfc9841c0f330b328edf7b908..3d69546ccebede971390da78f13c9e84f8f5ec17 100644 (file)
@@ -366,4 +366,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_MeasureDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_MeasureDriver,GEOM_BaseDriver)
index 89211d58edc411e0e13ad51719905060c04d9b90..5bc3676ccecbc07b1c1edd5f3b5335908b99a7cb 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_MeasureDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_MeasureDriver, GEOM_BaseDriver )
 
 class GEOMImpl_MeasureDriver : public GEOM_BaseDriver {
 
index 5329ad0d7decf1d16bb45551c50abb8451f3ef66..e90bcc3dcf864c2e3b7ee8c75cdb59c2f8aee42a 100644 (file)
@@ -202,4 +202,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_MirrorDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_MirrorDriver,GEOM_BaseDriver)
index 728c683f23ec6d19f05eae0d8d360578a95fa51a..601d89f0afd3af3a7bf9359bcd103261400000ef 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_MirrorDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_MirrorDriver, GEOM_BaseDriver )
 
 class GEOMImpl_MirrorDriver : public GEOM_BaseDriver {
 
index f2a1c360c63c10f7592dca838964487d3d4d75ab..9c28a6b72c81e03391fcbb5b9c506ce1cabc2a7d 100644 (file)
@@ -237,4 +237,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_OffsetDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_OffsetDriver,GEOM_BaseDriver)
index 13a209b45ad1d3d66cdc6a1726791262b9c2d4fc..9440300b8c493b3a85a31dd8393516e0fcda6e5c 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_OffsetDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_OffsetDriver, GEOM_BaseDriver )
 
 class GEOMImpl_OffsetDriver : public GEOM_BaseDriver {
 
index 7f2791007377c9c9c17ddbfe5de4531b8af54d6f..6b5fe7b11d3d6a37503bfd2ffae19795cb158f32 100644 (file)
@@ -141,7 +141,7 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(Handle(TFunction_Logbook)& lo
     Handle(TColStd_HArray1OfInteger) aMaterials   = aCI.GetMaterials();
     //skl Standard_Boolean DoRemoveWebs = !aMaterials.IsNull();
 
-    unsigned int ind;
+    int ind;
     //unsigned int ind, nbshapes = 0;
     //nbshapes += aShapes->Length() + aTools->Length();
     //nbshapes += aKeepIns->Length() + aRemIns->Length();
@@ -559,4 +559,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PartitionDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PartitionDriver,GEOM_BaseDriver)
index 869e77305bf55af228bcca990ec06b26ac3bfedc..a3945cfee2976ad22275610f5d6d0b6b9427c08a 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PartitionDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PartitionDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PartitionDriver : public GEOM_BaseDriver {
 
index ec73411abf377e70cf46cc48ecf2f99e6666c1b1..126d80f31aa31d11fd8cf43045937ae3df41b19c 100644 (file)
@@ -3531,4 +3531,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PipeDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PipeDriver,GEOM_BaseDriver)
index 1b3be3ea1d3ec22d4b6cf4704459a5217b6e1a60..d4bf4c09a703afb9a194f9aa76eba570c8cf9c97 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PipeDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PipeDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PipeDriver : public GEOM_BaseDriver {
 
@@ -40,8 +40,8 @@ public:
 
   Standard_EXPORT GEOMImpl_PipeDriver();
   Standard_EXPORT virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual void Validate(Handle(TFunction_Logbook)& log) const {}
-  Standard_EXPORT Standard_Boolean MustExecute(const Handle(TFunction_Logbook)& log) const { return Standard_True; }
+  Standard_EXPORT virtual void Validate(Handle(TFunction_Logbook)& /*log*/) const {}
+  Standard_EXPORT Standard_Boolean MustExecute(const Handle(TFunction_Logbook)& /*log*/) const { return Standard_True; }
 
   Standard_EXPORT static const Standard_GUID& GetID();
   Standard_EXPORT ~GEOMImpl_PipeDriver() {};
index 957fd9661d764a713cddc8c2de8ed950822f5271..5ee6dea028f7c995206f72c831739e77b292ee3a 100644 (file)
@@ -161,4 +161,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PipePathDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PipePathDriver,GEOM_BaseDriver)
index 617cc630c0381daba048604bb155d422d993bb88..6828544cbebb727bf4cdbc9b78efc5fcdca02a4c 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PipePathDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PipePathDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PipePathDriver : public GEOM_BaseDriver {
 
index 14aafb270d26a3c0f67c224e52c842e0876b8362..3b907f8ea605085867ed30c53b11edf60b0e3010 100644 (file)
@@ -299,4 +299,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PlaneDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PlaneDriver,GEOM_BaseDriver)
index d88a30513aea421e7295a4ae51e0f26fb962d273..0c44241c6ab37d1dcb752b92ec90dc9d25e12173 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PlaneDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PlaneDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PlaneDriver : public GEOM_BaseDriver {
 
index 003af3b730e100465f80d20aabd24898eb2d6b68..b91a6160fdc1fbcffca4e015874137ed6e153b0a 100644 (file)
@@ -438,4 +438,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PointDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PointDriver,GEOM_BaseDriver)
index c067956a52e2d8424a5f3562af3a3d185b4ede8c..e7e9ab3be2ec38b9ade6bcdedc717d2e483d8975 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PointDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PointDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PointDriver : public GEOM_BaseDriver {
 
index 829f038a8323e08a7887063bf270ac8125b14c3e..52b7cb83da8a12ed4fc5b2b319ddc0107b805f57 100644 (file)
@@ -104,7 +104,7 @@ Standard_Integer GEOMImpl_PolylineDriver::MakePolyline2D(Handle(TFunction_Logboo
     return 0;
   }
 
-  if (aNbSections != aCoords.size()) {
+  if (aNbSections != (int)aCoords.size()) {
     return 0;
   }
 
@@ -318,10 +318,8 @@ GetCreationInformation(std::string&             theOperationName,
         Handle(TColStd_HArray1OfReal) coords = aCI.GetCoordinates();
         if ( coords->Length() > 3 )
           pntParam << ( coords->Length() ) / 3 << " points: ";
-        for ( int i = coords->Lower(), nb = coords->Upper(); i <= nb; )
-          pntParam << "( " << coords->Value( i++ )
-                   << ", " << coords->Value( i++ )
-                   << ", " << coords->Value( i++ ) << " ) ";
+        for ( int i = coords->Lower(), nb = coords->Lower()+(coords->Length()/3)*3; i < nb; i+=3)
+          pntParam << "( " << coords->Value( i ) << ", " << coords->Value( i+1 ) << ", " << coords->Value( i+2 ) << " ) ";
       }
       else
       {
@@ -383,7 +381,7 @@ GetCreationInformation(std::string&             theOperationName,
           AddParam(theParams, "Number of curves", aNbCurves);
           aP2d.GetCoords(aCoords);
 
-          Standard_Integer aNbCoords = aCoords.size();
+          //Standard_Integer aNbCoords = aCoords.size();
           std::list <std::list <double> >::const_iterator
                            anIt      = aCoords.begin();
 
@@ -437,4 +435,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PolylineDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PolylineDriver,GEOM_BaseDriver)
index c3480e9977064b5a5df6aafd8d83644bad47dcc5..a4e00e9f9e8e1ae2234a05e20db540b2b1a921dc 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PolylineDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PolylineDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PolylineDriver : public GEOM_BaseDriver {
 
index eee95d2d98f8c9e752a3dfdfed670eedf6dfee1c..77ab5dbf12e471cb5bdbc92f954fd0c17899b225 100644 (file)
@@ -262,4 +262,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PositionDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PositionDriver,GEOM_BaseDriver)
index ee95b7bd41d87eed623a11d992ccdf6313df0b1e..00b893ea5507e9b1dd693ae23333d0c47ff29538 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PositionDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PositionDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PositionDriver : public GEOM_BaseDriver {
 
index b573f1294da0d9107742236355bb5f6fc1f3174e..adf045517a91d7e5b69226f38e3112198e8466eb 100644 (file)
@@ -555,4 +555,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PrismDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PrismDriver,GEOM_BaseDriver)
index 021194df0df664ccc5f4c0f67307a814f93b07d9..58b3d465077be3a467b214ca1c90a41f0b943c4d 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_PrismDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_PrismDriver, GEOM_BaseDriver )
 
 class GEOMImpl_PrismDriver : public GEOM_BaseDriver {
 
index 3ee8db2c2a26388be86e6b48b018d4b7500f0398..20f006b34d51e35a06e594fcdbef8bc337051b23 100644 (file)
@@ -810,4 +810,4 @@ TopoDS_Shape GEOMImpl_ProjectionDriver::projectOnCylinder
   return aResult;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ProjectionDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ProjectionDriver,GEOM_BaseDriver)
index 8f73151caca0a7a73be2b0058f0881099aa2b1c2..0b0836c0cf4564d882fd0c2a9c67b3ec3f2b930a 100644 (file)
@@ -30,7 +30,7 @@ class TopoDS_Shape;
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ProjectionDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ProjectionDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ProjectionDriver : public GEOM_BaseDriver {
 
index 038d79db90533e07ad605707c181f95d86fe1a65..c9f3fe72057fec078f014e146da2bbdfdd7d7984 100644 (file)
@@ -171,4 +171,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_RevolutionDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_RevolutionDriver,GEOM_BaseDriver)
index 15b21b0f337783b1eed5141c7bbeaa899b78c74a..6af8da4aa1c8e188d9ec46ac45af633cb711b8b8 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_RevolutionDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_RevolutionDriver, GEOM_BaseDriver )
 
 class GEOMImpl_RevolutionDriver : public GEOM_BaseDriver {
 
index c9e93ce6c80fb9846468c56f15c049567870fc99..a6a21b2141c7dc1cd4f8804b4a3de8adaaa683d0 100644 (file)
@@ -377,4 +377,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_RotateDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_RotateDriver,GEOM_BaseDriver)
index 268dd6d79a19b68b679018ee1da6aac6aa87a8f7..793a486b820f97966a22591a64aefa19e0fb4a2e 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_RotateDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_RotateDriver, GEOM_BaseDriver )
 
 class GEOMImpl_RotateDriver : public GEOM_BaseDriver {
 
index b0480ebb6f5b2697be1754431c9287cf4aeb68c6..562b9fe2af82e7a75e2d67eca97cfebfec7442b9 100644 (file)
@@ -218,4 +218,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ScaleDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ScaleDriver,GEOM_BaseDriver)
index 408af4663ec1a7c02983f07474a2bed634f65e01..a0f9f81d5cc8316359f733e5aefd736bff664782 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ScaleDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ScaleDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ScaleDriver : public GEOM_BaseDriver {
 
index a2bcdd27a611616d768d6b4560dc2324f393a1f7..051f54d809c0cd81db5d0f07502f51f70166f990 100644 (file)
@@ -332,7 +332,7 @@ namespace
 
       for (anIter.Initialize(aListFaces); anIter.More();) {
         const TopoDS_Shape &aFace      = anIter.Value();
-        Standard_Boolean    isFaceUsed = Standard_False;
+        //Standard_Boolean    isFaceUsed = Standard_False;
 
         if (aMapFaces.Contains(aFace) || aSewing.IsModified(aFace)) {
           // Remove face from the list.
@@ -1096,7 +1096,7 @@ TopoDS_Wire GEOMImpl_ShapeDriver::MakeWireFromEdges(const Handle(TColStd_HSequen
   B.MakeWire(aWire);
 
   // add edges
-  for (unsigned int ind = 1; ind <= theEdgesFuncs->Length(); ind++) {
+  for (int ind = 1; ind <= theEdgesFuncs->Length(); ind++) {
     Handle(GEOM_Function) aRefShape = Handle(GEOM_Function)::DownCast(theEdgesFuncs->Value(ind));
     TopoDS_Shape aShape_i = aRefShape->GetValue();
     if (aShape_i.IsNull()) {
@@ -1172,7 +1172,7 @@ TopoDS_Edge GEOMImpl_ShapeDriver::MakeEdgeFromWire(const TopoDS_Shape& aWire,
     TColStd_SequenceOfReal FparSeq;
     TColStd_SequenceOfReal LparSeq;
     TColStd_SequenceOfReal TolSeq;
-    GeomAbs_CurveType CurType;
+    GeomAbs_CurveType CurType = GeomAbs_OtherCurve; // todo: refactor: CurType must be explicitly initialized to avoid warning (see below)
     TopoDS_Vertex FirstVertex, LastVertex;
     Standard_Real aPntShiftDist = 0.;
 
@@ -1204,7 +1204,7 @@ TopoDS_Edge GEOMImpl_ShapeDriver::MakeEdgeFromWire(const TopoDS_Shape& aWire,
         LocSeq.Append(aLocShape);
         FparSeq.Append(fpar);
         LparSeq.Append(lpar);
-        CurType = aType;
+        CurType = aType;                     // todo: refactor: CurType must be explicitly initialized to avoid warning (see above)
         FirstVertex = wexp.CurrentVertex();
       }
       else
@@ -1447,6 +1447,8 @@ TopoDS_Edge GEOMImpl_ShapeDriver::MakeEdgeFromWire(const TopoDS_Shape& aWire,
               }
               break;
             }
+          default:
+            break;
           } //end of switch (aType)
         } // end of else if (aType == CurType && ...
         if (Done)
@@ -2031,7 +2033,7 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ShapeDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ShapeDriver,GEOM_BaseDriver)
 
 //modified by NIZNHY-PKV Wed Dec 28 13:48:31 2011f
 #include <TopoDS_Iterator.hxx>
index e1bc4433a6520fbf8acdd1f4f28ba1560c7aed59..45ad7e76fe56b0d3160dd1bb0200f3b7e2e81890 100644 (file)
@@ -35,7 +35,7 @@
 
 class TopoDS_Face;
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ShapeDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ShapeDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ShapeDriver : public GEOM_BaseDriver {
 
index f1a29f292caa0062e7df082ff5e3447dae6c12b8..17a8d2be6c54785242ed4d8fea3ca4a07cb88a39 100644 (file)
@@ -177,4 +177,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_SketcherDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_SketcherDriver,GEOM_BaseDriver)
index 1c645fd781811b73c035f4f497176d2d9453fbd5..ada1a0c823c076d505e22ce14fc18be150423295 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_SketcherDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_SketcherDriver, GEOM_BaseDriver )
 
 class GEOMImpl_SketcherDriver : public GEOM_BaseDriver {
 
index d93e23c442a2f848cabf1b8c465504d7a69bf1d5..2102bd9d326ebb0f2b57aaf815546a35ea9246e0 100644 (file)
@@ -135,4 +135,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_SphereDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_SphereDriver,GEOM_BaseDriver)
index 1ed1aa406740cd0d5e68ce5c2c165cc57361bf13..2ecdb8543740ab30c7cd396ca0d827a994687f6b 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_SphereDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_SphereDriver, GEOM_BaseDriver )
 
 class GEOMImpl_SphereDriver : public GEOM_BaseDriver {
 
index f6c4ec1f37acb70eebb2aab283cc832d711bb421..e48d775d327edae2c9272d0feaf44cbd3dad938b 100644 (file)
@@ -166,12 +166,14 @@ Standard_Integer GEOMImpl_SplineDriver::Execute(Handle(TFunction_Logbook)& log)
           }
         }
         if (nearest > 0 && nearest != i + 1) {
-          // Keep given order of points to use it in case of equidistant candidates
-          //               .-<---<-.
-          //              /         \
-          // o  o  o  c  o->o->o->o->n  o  o
-          //          |  |           |
-          //          i i+1       nearest
+          /*====================================================================
+          Keep given order of points to use it in case of equidistant candidates
+                         .-<---<-.
+                        /         \ 
+           o  o  o  c  o->o->o->o->n  o  o
+                    |  |           |
+                    i i+1       nearest
+          ======================================================================*/
           gp_Pnt p = points->Value(nearest);
           for (int j = nearest; j > i+1; j--)
             points->SetValue(j, points->Value(j-1));
@@ -397,4 +399,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_SplineDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_SplineDriver,GEOM_BaseDriver)
index a4aaeb837d2d989e38744fd5ee322e37c1813ce3..d598dbf9eae62eceddd32f6cd8c3386f16e1405d 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_SplineDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_SplineDriver, GEOM_BaseDriver )
 
 class GEOMImpl_SplineDriver : public GEOM_BaseDriver {
 
index b4289fdd8eb9e94c26e2d6a3a0388ed10c8d6913..8734fe69930a97f9798dcf51a1e1a761c6be28ab 100644 (file)
@@ -171,4 +171,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ThruSectionsDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ThruSectionsDriver,GEOM_BaseDriver)
index 2ac3706b98fe37739248af743ba3bc8256dfacb0..f4998513774c166c79d24aecec872b1626c1a6a0 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_ThruSectionsDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_ThruSectionsDriver, GEOM_BaseDriver )
 
 class GEOMImpl_ThruSectionsDriver : public GEOM_BaseDriver {
 
index 2ee6060bc263bf0ee6fbc502fb85110b930e2fe5..87b4710b46d931d03ff5a0d7af51757639b26e3e 100644 (file)
@@ -156,4 +156,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_TorusDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_TorusDriver,GEOM_BaseDriver)
index 9101dce19307b558a26dfc3f73118628cec10cd8..01735d1e56866193c196fe2283f81a29fe499474 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_TorusDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_TorusDriver, GEOM_BaseDriver )
 
 class GEOMImpl_TorusDriver : public GEOM_BaseDriver {
 
index 42c277a03f624c4b4aea00d1e36d65cacffb9878..a3aeb14ccfbf3d441c0feb67d004cf706826a852 100644 (file)
@@ -314,4 +314,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_TranslateDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_TranslateDriver,GEOM_BaseDriver)
index 0dedb7f1707710d3d4effcbc6cd773704128bc00..fbca9ed468cf556bb90eccc0b6faaf207cfa38cd 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_TranslateDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_TranslateDriver, GEOM_BaseDriver )
 
 class GEOMImpl_TranslateDriver : public GEOM_BaseDriver {
 
index 52152f0fc2fa12ba4e93ed60627605f8999b33d6..67b57e2db7e41f819cf70a5862696ea028565c5f 100644 (file)
@@ -224,4 +224,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_VectorDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_VectorDriver,GEOM_BaseDriver)
index cd29bc4e14b33a3dac60e8534f410d2c74493138..fdf40b137a04fbf56a8aca14957528a931b699fd 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <GEOM_BaseDriver.hxx>
 
-DEFINE_STANDARD_HANDLE( GEOMImpl_VectorDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( GEOMImpl_VectorDriver, GEOM_BaseDriver )
 
 class GEOMImpl_VectorDriver : public GEOM_BaseDriver {
 
index 5be561172ab10b72c5a8934f9023326cc4c609da..15e79b3d582770020861b927623a975980351850 100644 (file)
@@ -206,7 +206,7 @@ GEOMToolsGUI::~GEOMToolsGUI()
 // function : OnGUIEvent()
 // purpose  :
 //=======================================================================
-bool GEOMToolsGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
+bool GEOMToolsGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* /*parent*/)
 {
   getGeometryGUI()->EmitSignalDeactivateDialog();
 
@@ -335,7 +335,7 @@ bool GEOMToolsGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent)
 // function : OnGUIEvent()
 // purpose  :
 //=======================================================================
-bool GEOMToolsGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* parent, const QVariant& theParam )
+bool GEOMToolsGUI::OnGUIEvent(int theCommandID, SUIT_Desktop* /*parent*/, const QVariant& theParam )
 {
   getGeometryGUI()->EmitSignalDeactivateDialog();
 
index 42790af114df8cd1170abb5eb9e39db57f680bf5..50984c7ded05f5139f9b5256c28251e8dc63b62d 100644 (file)
@@ -607,7 +607,7 @@ void GEOMToolsGUI::OnUnpublishObject() {
             disp->EraseWithChildren(IObject);
             // hide references if any
             std::vector< _PTR(SObject) > vso = aStudy->FindDependances(obj);
-            for ( int i = 0; i < vso.size(); i++ ) {
+            for ( int i = 0; i < (int)vso.size(); i++ ) {
               _PTR(SObject) refObj = vso[i];
               aDrw = B->FindOrCreateAttribute( refObj, "AttributeDrawable" );
               aDrw->SetDrawable( false );
index ee1d7a17dbf88a1db059eedfa5a0a6f0931c388a..10c67dd92f2a5fd62a688a2cde85446b0a8fe436 100644 (file)
@@ -277,7 +277,7 @@ void GEOMToolsGUI_MarkerDlg::init()
   GEOM::GEOM_Gen_var engine = GeometryGUI::GetGeomGen();
   myOperation = engine->GetIInsertOperations();
   GEOM::ListOfLong_var ids = myOperation->GetAllTextures();
-  for ( int i = 0; i < ids->length(); i++ )
+  for ( int i = 0; i < (int)ids->length(); i++ )
     addTexture( ids[i] );
 
   // ---
index dcccfb7bd75accd519792a94d239e493d7882b55..7a2a70c1691959c32c96bb434ad9169b42577ade 100644 (file)
@@ -165,13 +165,13 @@ void GEOMToolsGUI_ReduceStudyDlg::init( const std::set<std::string>& theObjectEn
   GeometryGUI::GetGeomGen()->GetEntriesToReduceStudy( keptObjects, parentsObjects,
                                                              subObjects, otherObjects );
 
-  for ( int i = 0; i < keptObjects->length(); i++ )
+  for ( unsigned long i = 0; i < keptObjects->length(); i++ )
     myKeptObjects.insert( keptObjects[i].in() );
-  for( int i = 0; i< otherObjects->length(); i++ )
+  for( unsigned long i = 0; i< otherObjects->length(); i++ )
     myRemovedObjects.insert( otherObjects[i].in() );
-  for( int i = 0; i< parentsObjects->length(); i++ )
+  for( unsigned long i = 0; i< parentsObjects->length(); i++ )
     myListParents.insert( parentsObjects[i].in() );
-  for( int i = 0; i< subObjects->length(); i++ )
+  for( unsigned long i = 0; i< subObjects->length(); i++ )
     myListSubObjects.insert( subObjects[i].in() );
 
   update();
@@ -400,7 +400,7 @@ void GEOMToolsGUI_ReduceStudyDlg::unpublishObjects( std::set<std::string>& theOb
       myDisplayer.EraseWithChildren( new SALOME_InteractiveObject( studyEntry.c_str(), "GEOM", "TEMP_IO" ) );
       // hide references if any
       std::vector< _PTR(SObject) > vso = aStudy->FindDependances(obj);
-      for ( int i = 0; i < vso.size(); i++ ) {
+      for ( int i = 0; i < (int)vso.size(); i++ ) {
         _PTR(SObject) refObj = vso[i];
         aDrw = aStudyBuilder->FindOrCreateAttribute( refObj, "AttributeDrawable" );
         aDrw->SetDrawable( false );
@@ -703,16 +703,16 @@ void GEOMToolsGUI_ReduceStudyDlg::clickOnHelp()
 GEOMToolsGUI_TreeWidgetItem::GEOMToolsGUI_TreeWidgetItem( QTreeWidget* view, const QStringList &strings,
                                                           char* studyEntry, int type )
 :QTreeWidgetItem( view, strings, type ),
- myStudyEntry( studyEntry ),
- myVisible( false )
+ myVisible( false ),
+ myStudyEntry( studyEntry )
 {
 }
 
 GEOMToolsGUI_TreeWidgetItem::GEOMToolsGUI_TreeWidgetItem( QTreeWidgetItem* parent, const QStringList &strings,
                                                           char* studyEntry, int type )
 :QTreeWidgetItem( parent, strings, type ),
- myStudyEntry( studyEntry ),
- myVisible( false )
+ myVisible( false ),
+ myStudyEntry( studyEntry )
 {
 }
 
index 58f26932eb90ffdfa3878a0c16ce9a8477d90d62..a2be3c849c8d481ad9dac1b4efef0370e7851574 100644 (file)
@@ -1083,7 +1083,7 @@ void GEOMUtils::ConvertStringToTree( const std::string& dependencyStr,
     std::string objectEntry = dependencyStr.substr( cursor, objectIndex - cursor );
     cursor = objectIndex;
 
-    std::size_t upwardIndexBegin = dependencyStr.find("{",cursor) + 1;
+    //std::size_t upwardIndexBegin = dependencyStr.find("{",cursor) + 1;
     //std::size_t upwardIndexFinish = dependencyStr.find("}",upwardIndexBegin);
     LevelsList upwardList = parseWard( dependencyStr, cursor );
 
index b6c5752e3a20648f78d363d6969678859243cde9..b17bccc79d6b4e4b20a3f4060c7e7bebbc13096e 100644 (file)
@@ -116,7 +116,7 @@ namespace GEOMUtils
    * \brief Sort shapes in the list by their coordinates.
    * \param SL The list of shapes to sort.
    */
-  struct CompareShapes : public std::binary_function<TopoDS_Shape, TopoDS_Shape, bool>
+  struct CompareShapes //: public std::binary_function<TopoDS_Shape, TopoDS_Shape, bool>
   {
     CompareShapes (bool isOldSorting)
       : myIsOldSorting(isOldSorting) {}
@@ -390,6 +390,6 @@ namespace GEOMUtils
                                       const double              theTolShape,
                                       const double              theTolRef);
 
-};
+}
 
 #endif
index dfc3d54bb980957d1710ea724eab576a70688200..4ea2e2e27a9cce1b421cf972f45667ee5099a8d6 100644 (file)
@@ -21,7 +21,7 @@
 #include <GEOMUtils_HTrsfCurve2d.hxx>
 
 namespace GEOMUtils {
-  IMPLEMENT_STANDARD_RTTIEXT(HTrsfCurve2d, Adaptor2d_HCurve2d);
+  IMPLEMENT_STANDARD_RTTIEXT(HTrsfCurve2d, Adaptor2d_HCurve2d)
 }
 
 //=======================================================================
index fb2053e3b0708569053a2fde51e0ce0f5b9e223b..47bb9034d7b06b46c1a07dfae4b0cd7fb4cf3476 100644 (file)
@@ -31,7 +31,7 @@ namespace GEOMUtils
 
   class HTrsfCurve2d;
 
-  DEFINE_STANDARD_HANDLE(HTrsfCurve2d, Adaptor2d_HCurve2d);
+  DEFINE_STANDARD_HANDLE(HTrsfCurve2d, Adaptor2d_HCurve2d)
 
   /*!
    *  This class represents an adaptor curve that represents an original curve
index cbdd2c4e785cc9ba40d94942f8cbb8f87f863e46..92928480cc847bee7d74e0b9b74e5f5c009b5b34 100644 (file)
@@ -182,8 +182,8 @@ namespace
 #endif
                          }
                  }
-                 return xmlPaths;
          }
+         return xmlPaths;
   }
 
 #ifdef MYDEBUG
index 4e50c4bd6b25b02c1564ce1101d5158be47189f9..2f8c4882d7a8335433b3af337d65fa8d4fcc2691 100644 (file)
@@ -152,10 +152,10 @@ GEOM_Gen_i::~GEOM_Gen_i() {
 // function : IORToLocalPersistentID()
 // purpose  :
 //============================================================================
-char* GEOM_Gen_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
+char* GEOM_Gen_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr /*theSObject*/,
                                          const char* IORString,
-                                         CORBA::Boolean isMultiFile,
-                                         CORBA::Boolean isASCII)
+                                         CORBA::Boolean /*isMultiFile*/,
+                                         CORBA::Boolean /*isASCII*/)
 {
   GEOM::GEOM_BaseObject_var anObject =
     GEOM::GEOM_BaseObject::_narrow(_orb->string_to_object(IORString));
@@ -172,10 +172,10 @@ char* GEOM_Gen_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
 //          : Used when a study is loaded
 //          : The IOR (IORName) of object created is returned
 //============================================================================
-char* GEOM_Gen_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
+char* GEOM_Gen_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr /*theSObject*/,
                                          const char* aLocalPersistentID,
-                                         CORBA::Boolean isMultiFile,
-                                         CORBA::Boolean isASCII)
+                                         CORBA::Boolean /*isMultiFile*/,
+                                         CORBA::Boolean /*isASCII*/)
 {
   Handle(::GEOM_BaseObject) anObject =
     _impl->GetObject(aLocalPersistentID);
@@ -212,7 +212,7 @@ bool GEOM_Gen_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
 SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::SObject_ptr theSObject,
                                                  CORBA::Object_ptr     theObject,
                                                  const char*           theName)
-  throw (SALOME::SALOME_Exception)
+  
 {
   Unexpect aCatch(SALOME_SalomeException);
   SALOMEDS::SObject_var aResultSO;
@@ -440,9 +440,9 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PublishInStudy(SALOMEDS::SObject_ptr theSObjec
 void GEOM_Gen_i::CreateAndPublishGroup(GEOM::GEOM_Object_var theMainShape,
                                        const TopTools_IndexedMapOfShape& anIndices,
                                        const TopTools_SequenceOfShape& SeqS,
-                                       const TColStd_SequenceOfAsciiString& SeqN,
+                                       const TColStd_SequenceOfAsciiString& /*SeqN*/,
                                        const Standard_CString& GrName,
-                                       GEOM::ListOfGO_var aResList)
+                                       GEOM::ListOfGO_var /*aResList*/)
 {
   CORBA::String_var entry = theMainShape->GetEntry();
   //Handle(::GEOM_Object) aMainShape = _impl->GetObject(entry);
@@ -558,7 +558,7 @@ GEOM::ListOfGO* GEOM_Gen_i::
 // function : Save()
 // purpose  : save OCAF/Geom document
 //============================================================================
-SALOMEDS::TMPFile* GEOM_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent,
+SALOMEDS::TMPFile* GEOM_Gen_i::Save(SALOMEDS::SComponent_ptr /*theComponent*/,
                                     const char* theURL,
                                     bool isMultiFile) {
   SALOMEDS::TMPFile_var aStreamFile;
@@ -705,7 +705,7 @@ CORBA::Boolean GEOM_Gen_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
 // function : Close()
 // purpose  :
 //============================================================================
-void GEOM_Gen_i::Close(SALOMEDS::SComponent_ptr theComponent)
+void GEOM_Gen_i::Close(SALOMEDS::SComponent_ptr /*theComponent*/)
 {
   _impl->Close();
 }
@@ -759,7 +759,7 @@ SALOMEDS::TMPFile* GEOM_Gen_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::
 // function : CanPaste()
 // purpose  :
 //============================================================================
-CORBA::Boolean GEOM_Gen_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID) {
+CORBA::Boolean GEOM_Gen_i::CanPaste(const char* theComponentName, CORBA::Long /*theObjectID*/) {
   // The Geometry component can paste only objects copied by Geometry component
   // and with the object type = 1
   if (strcmp(theComponentName, ComponentDataType()) != 0) return false;
@@ -784,7 +784,7 @@ SALOMEDS::SObject_ptr GEOM_Gen_i::PasteInto(const SALOMEDS::TMPFile& theStream,
   BRep_Builder aBuilder;
   try {
     BRepTools::Read(aTopology, aStreamedBrep, aBuilder);
-  } catch (Standard_Failure) {
+  } catch (Standard_Failure&) {
     return aNewSO._retn();
   }
 
@@ -2237,7 +2237,6 @@ void GEOM_Gen_i::Redo()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IBasicOperations_ptr GEOM_Gen_i::GetIBasicOperations()
-     throw ( SALOME::SALOME_Exception )
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIBasicOperations" );
@@ -2259,7 +2258,6 @@ GEOM::GEOM_IBasicOperations_ptr GEOM_Gen_i::GetIBasicOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_ITransformOperations_ptr GEOM_Gen_i::GetITransformOperations()
-     throw ( SALOME::SALOME_Exception )
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetITransformOperations" );
@@ -2279,7 +2277,7 @@ GEOM::GEOM_ITransformOperations_ptr GEOM_Gen_i::GetITransformOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_I3DPrimOperations_ptr GEOM_Gen_i::GetI3DPrimOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetI3DPrimOperations" );
@@ -2300,7 +2298,7 @@ GEOM::GEOM_I3DPrimOperations_ptr GEOM_Gen_i::GetI3DPrimOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IShapesOperations_ptr GEOM_Gen_i::GetIShapesOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIShapesOperations" );
@@ -2320,7 +2318,7 @@ GEOM::GEOM_IShapesOperations_ptr GEOM_Gen_i::GetIShapesOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IBlocksOperations_ptr GEOM_Gen_i::GetIBlocksOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIBlocksOperations" );
@@ -2340,7 +2338,7 @@ GEOM::GEOM_IBlocksOperations_ptr GEOM_Gen_i::GetIBlocksOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IBooleanOperations_ptr GEOM_Gen_i::GetIBooleanOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIBooleanOperations" );
@@ -2360,7 +2358,7 @@ GEOM::GEOM_IBooleanOperations_ptr GEOM_Gen_i::GetIBooleanOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_ICurvesOperations_ptr GEOM_Gen_i::GetICurvesOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetICurvesOperations" );
@@ -2380,7 +2378,7 @@ GEOM::GEOM_ICurvesOperations_ptr GEOM_Gen_i::GetICurvesOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_ILocalOperations_ptr GEOM_Gen_i::GetILocalOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetILocalOperations" );
@@ -2400,7 +2398,7 @@ GEOM::GEOM_ILocalOperations_ptr GEOM_Gen_i::GetILocalOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IHealingOperations_ptr GEOM_Gen_i::GetIHealingOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::IHealingOperations" );
@@ -2420,7 +2418,7 @@ GEOM::GEOM_IHealingOperations_ptr GEOM_Gen_i::GetIHealingOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IInsertOperations_ptr GEOM_Gen_i::GetIInsertOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIInsertOperations" );
@@ -2440,7 +2438,7 @@ GEOM::GEOM_IInsertOperations_ptr GEOM_Gen_i::GetIInsertOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IMeasureOperations_ptr GEOM_Gen_i::GetIMeasureOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIMeasureOperations" );
@@ -2460,7 +2458,7 @@ GEOM::GEOM_IMeasureOperations_ptr GEOM_Gen_i::GetIMeasureOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IGroupOperations_ptr GEOM_Gen_i::GetIGroupOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIGroupOperations" );
@@ -2480,7 +2478,7 @@ GEOM::GEOM_IGroupOperations_ptr GEOM_Gen_i::GetIGroupOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IFieldOperations_ptr GEOM_Gen_i::GetIFieldOperations()
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetIFieldOperations" );
@@ -2500,7 +2498,7 @@ GEOM::GEOM_IFieldOperations_ptr GEOM_Gen_i::GetIFieldOperations()
 // purpose  :
 //============================================================================
 GEOM::GEOM_IOperations_ptr GEOM_Gen_i::GetPluginOperations(const char* theLibName)
-     throw ( SALOME::SALOME_Exception )
+     
 {
   Unexpect aCatch(SALOME_SalomeException);
   MESSAGE( "GEOM_Gen_i::GetPluginOperations" );
@@ -3230,7 +3228,7 @@ void GEOM_Gen_i::GetEntriesToReduceStudy(GEOM::string_array& theSelectedEntries,
         continue;
 
       stringIOR = handle_object->GetIOR();
-      if ( !stringIOR.Length() > 1 )
+      if ( stringIOR.Length() < 1 )
         continue;
 
       geomObj = GetIORFromString( stringIOR.ToCString() );
index cd515fe03cc4f926a9bd06f6fc37b45659259206..ce3035be41f6eea261d15871b6faa09a2ae4521d 100644 (file)
@@ -150,7 +150,7 @@ class GEOM_I_EXPORT GEOM_Gen_i: virtual public POA_GEOM::GEOM_Gen, virtual publi
   bool CanPublishInStudy(CORBA::Object_ptr theIOR);
   SALOMEDS::SObject_ptr PublishInStudy(SALOMEDS::SObject_ptr theSObject,
                                        CORBA::Object_ptr theObject,
-                                       const char* theName) throw (SALOME::SALOME_Exception) ;
+                                       const char* theName) ;
 
   GEOM::ListOfGO* PublishNamedShapesInStudy(CORBA::Object_ptr theObject);
 
@@ -213,60 +213,55 @@ class GEOM_I_EXPORT GEOM_Gen_i: virtual public POA_GEOM::GEOM_Gen, virtual publi
   //-----------------------------------------------------------------------//
 
   //Returns a pointer to BasicOperations interface
-  virtual GEOM::GEOM_IBasicOperations_ptr GetIBasicOperations()
-    throw (SALOME::SALOME_Exception);
+  virtual GEOM::GEOM_IBasicOperations_ptr GetIBasicOperations();
 
   //Returns a pointer to TransformOperations interface
-  virtual GEOM::GEOM_ITransformOperations_ptr GetITransformOperations()
-    throw (SALOME::SALOME_Exception);
+  virtual GEOM::GEOM_ITransformOperations_ptr GetITransformOperations();
 
   //Returns a pointer to 3DPrimOperations interface
-  virtual GEOM::GEOM_I3DPrimOperations_ptr GetI3DPrimOperations()
-    throw (SALOME::SALOME_Exception);
+  virtual GEOM::GEOM_I3DPrimOperations_ptr GetI3DPrimOperations();
 
   //Returns a pointer to ShapesOperations interface
-  virtual GEOM::GEOM_IShapesOperations_ptr GetIShapesOperations()
-    throw (SALOME::SALOME_Exception);
+  virtual GEOM::GEOM_IShapesOperations_ptr GetIShapesOperations();
 
   //Returns a pointer to BlocksOperations interface
-  virtual GEOM::GEOM_IBlocksOperations_ptr GetIBlocksOperations()
-    throw (SALOME::SALOME_Exception);
+  virtual GEOM::GEOM_IBlocksOperations_ptr GetIBlocksOperations();
 
   //Returns a pointer to BooleanOperations interface
   virtual GEOM::GEOM_IBooleanOperations_ptr GetIBooleanOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to CurvesOperations interface
   virtual GEOM::GEOM_ICurvesOperations_ptr GetICurvesOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to LocalOperations interface
   virtual GEOM::GEOM_ILocalOperations_ptr GetILocalOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to HealingOperations interface
   virtual GEOM::GEOM_IHealingOperations_ptr GetIHealingOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to InsertOperations interface
   virtual GEOM::GEOM_IInsertOperations_ptr GetIInsertOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to MeasureOperations interface
   virtual GEOM::GEOM_IMeasureOperations_ptr GetIMeasureOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to GroupOperations interface
   virtual GEOM::GEOM_IGroupOperations_ptr GetIGroupOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to FiedlOperations interface
   virtual GEOM::GEOM_IFieldOperations_ptr GetIFieldOperations()
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Returns a pointer to corresponding plugin operations interface
   virtual GEOM::GEOM_IOperations_ptr GetPluginOperations (const char* theLibName)
-    throw (SALOME::SALOME_Exception);
+    ;
 
   //Adds a new sub-shape
   virtual GEOM::GEOM_Object_ptr AddSubShape (GEOM::GEOM_Object_ptr theMainShape,
index 78ea3e8425d612b1637c22465ff920187bbf3502..fb28bff70b10b657f23e39f407b245334ef7bad5 100644 (file)
@@ -485,7 +485,7 @@ GEOM::GEOM_Object_ptr GEOM_ICurvesOperations_i::MakeCurveParametric
   //Set a not done flag
   GetOperations()->SetNotDone();
 
-  GEOMImpl_ICurvesOperations::CurveType aType;
+  GEOMImpl_ICurvesOperations::CurveType aType = GEOMImpl_ICurvesOperations::Polyline; // todo: aType must be explicitly initialized to avoid warning
   switch(theCurveType) {
   case GEOM::Polyline:
     aType = GEOMImpl_ICurvesOperations::Polyline;
@@ -526,7 +526,7 @@ GEOM::GEOM_Object_ptr GEOM_ICurvesOperations_i::MakeCurveParametricNew
   //Set a not done flag
   GetOperations()->SetNotDone();
 
-  GEOMImpl_ICurvesOperations::CurveType aType;
+  GEOMImpl_ICurvesOperations::CurveType aType = GEOMImpl_ICurvesOperations::Polyline; // todo: aType must be explicitly initialized to avoid warning
   switch(theCurveType) {
   case GEOM::Polyline:
     aType = GEOMImpl_ICurvesOperations::Polyline;
index 750fe0c35df99e4dc4e870dae180fd34adc4c478..3c746c160b25645f74d058f8f3f5bd2ac95d4a9d 100644 (file)
@@ -419,9 +419,9 @@ PortableServer::ServantBase_var GEOM_Superv_i::GetServant(CORBA::Object_ptr
 // function : Save()
 // purpose  : save OCAF/Geom document
 //============================================================================
-SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
-                                       const char* theURL,
-                                       CORBA::Boolean isMultiFile)
+SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                       const char* /*theURL*/,
+                                       CORBA::Boolean /*isMultiFile*/)
 {
   SALOMEDS::TMPFile_var aStreamFile;
   return aStreamFile._retn();
@@ -431,9 +431,9 @@ SALOMEDS::TMPFile* GEOM_Superv_i::Save(SALOMEDS::SComponent_ptr theComponent,
 // function : SaveASCII()
 // purpose  :
 //============================================================================
-SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
-                                            const char* theURL,
-                                            CORBA::Boolean isMultiFile)
+SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                            const char* /*theURL*/,
+                                            CORBA::Boolean /*isMultiFile*/)
 {
   SALOMEDS::TMPFile_var aStreamFile;
   return aStreamFile._retn();
@@ -443,10 +443,10 @@ SALOMEDS::TMPFile* GEOM_Superv_i::SaveASCII(SALOMEDS::SComponent_ptr theComponen
 // function : Load()
 // purpose  :
 //============================================================================
-CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
-                                   const SALOMEDS::TMPFile& theStream,
-                                   const char* theURL,
-                                   CORBA::Boolean isMultiFile)
+CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                   const SALOMEDS::TMPFile& /*theStream*/,
+                                   const char* /*theURL*/,
+                                   CORBA::Boolean /*isMultiFile*/)
 {
   return false;
 }
@@ -455,10 +455,10 @@ CORBA::Boolean GEOM_Superv_i::Load(SALOMEDS::SComponent_ptr theComponent,
 // function : LoadASCII()
 // purpose  :
 //============================================================================
-CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
-                                        const SALOMEDS::TMPFile& theStream,
-                                        const char* theURL,
-                                        CORBA::Boolean isMultiFile)
+CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr /*theComponent*/,
+                                        const SALOMEDS::TMPFile& /*theStream*/,
+                                        const char* /*theURL*/,
+                                        CORBA::Boolean /*isMultiFile*/)
 {
   return false;
 }
@@ -467,7 +467,7 @@ CORBA::Boolean GEOM_Superv_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
 // function : Close()
 // purpose  :
 //============================================================================
-void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr theComponent)
+void GEOM_Superv_i::Close(SALOMEDS::SComponent_ptr /*theComponent*/)
 {
 }
 
@@ -484,10 +484,10 @@ char* GEOM_Superv_i::ComponentDataType()
 // function : IORToLocalPersistentID()
 // purpose  :
 //============================================================================
-char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
-                                            const char* IORString,
-                                            CORBA::Boolean isMultiFile,
-                                            CORBA::Boolean isASCII)
+char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr /*theSObject*/,
+                                            const char* /*IORString*/,
+                                            CORBA::Boolean /*isMultiFile*/,
+                                            CORBA::Boolean /*isASCII*/)
 {
   return 0;
 }
@@ -498,10 +498,10 @@ char* GEOM_Superv_i::IORToLocalPersistentID(SALOMEDS::SObject_ptr theSObject,
 //          : Used when a study is loaded
 //          : The IOR (IORName) of object created is returned
 //============================================================================
-char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr theSObject,
-                                            const char* aLocalPersistentID,
-                                            CORBA::Boolean isMultiFile,
-                                            CORBA::Boolean isASCII)
+char* GEOM_Superv_i::LocalPersistentIDToIOR(SALOMEDS::SObject_ptr /*theSObject*/,
+                                            const char* /*aLocalPersistentID*/,
+                                            CORBA::Boolean /*isMultiFile*/,
+                                            CORBA::Boolean /*isASCII*/)
 {
   return 0;
 }
@@ -523,7 +523,7 @@ CORBA::Boolean GEOM_Superv_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
 //============================================================================
 SALOMEDS::SObject_ptr GEOM_Superv_i::PublishInStudy(SALOMEDS::SObject_ptr theSObject,
                                                     CORBA::Object_ptr theObject,
-                                                    const char* theName) throw (SALOME::SALOME_Exception)
+                                                    const char* theName) 
 {
   if (CORBA::is_nil(myGeomEngine))
     setGeomEngine();
@@ -547,7 +547,7 @@ GEOM_Superv_i::PublishNamedShapesInStudy(//SALOMEDS::SObject_ptr theSObject,
 // function : CanCopy()
 // purpose  :
 //============================================================================
-CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
+CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr /*theObject*/)
 {
   return false;
 }
@@ -556,7 +556,7 @@ CORBA::Boolean GEOM_Superv_i::CanCopy(SALOMEDS::SObject_ptr theObject)
 // function : CopyFrom()
 // purpose  :
 //============================================================================
-SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID)
+SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr /*theObject*/, CORBA::Long& /*theObjectID*/)
 {
   SALOMEDS::TMPFile_var aStreamFile;
   return aStreamFile._retn();
@@ -566,7 +566,7 @@ SALOMEDS::TMPFile* GEOM_Superv_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORB
 // function : CanPaste()
 // purpose  :
 //============================================================================
-CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long theObjectID)
+CORBA::Boolean GEOM_Superv_i::CanPaste(const char* /*theComponentName*/, CORBA::Long /*theObjectID*/)
 {
   return false;
 }
@@ -575,9 +575,9 @@ CORBA::Boolean GEOM_Superv_i::CanPaste(const char* theComponentName, CORBA::Long
 // function : PasteInto()
 // purpose  :
 //============================================================================
-SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& theStream,
-                                               CORBA::Long theObjectID,
-                                               SALOMEDS::SObject_ptr theObject)
+SALOMEDS::SObject_ptr GEOM_Superv_i::PasteInto(const SALOMEDS::TMPFile& /*theStream*/,
+                                               CORBA::Long /*theObjectID*/,
+                                               SALOMEDS::SObject_ptr /*theObject*/)
 {
   SALOMEDS::SObject_var aNewSO;
   return aNewSO._retn();
@@ -3415,14 +3415,14 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportSTL( const char* theFileName )
   MESSAGE("GEOM_Superv_i::ImportSTL");
   getSTLPluginOp();
   GEOM::ListOfGO* aSeq = mySTLOp->ImportSTL(theFileName );
-  GEOM::GEOM_Object_ptr anObj;
+  GEOM::GEOM_Object_var anObj;
 
   if (aSeq->length() > 0) {
     anObj = aSeq->operator[](0);
   }
 
   endService( " GEOM_Superv_i::ImportSTL" );
-  return anObj;
+  return anObj._retn();
 }
 
 //=============================================================================
@@ -3447,14 +3447,14 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportBREP( const char* theFileName )
   MESSAGE("GEOM_Superv_i::ImportBREP");
   getBREPPluginOp();
   GEOM::ListOfGO* aSeq = myBREPOp->ImportBREP(theFileName );
-  GEOM::GEOM_Object_ptr anObj;
+  GEOM::GEOM_Object_var anObj;
 
   if (aSeq->length() > 0) {
     anObj = aSeq->operator[](0);
   }
 
   endService( " GEOM_Superv_i::ImportBREP" );
-  return anObj;
+  return anObj._retn();
 }
 
 //=============================================================================
@@ -3483,14 +3483,14 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportSTEP( const char* theFileName,
   MESSAGE("GEOM_Superv_i::ImportSTEP");
   getSTEPPluginOp();
   GEOM::ListOfGO* aSeq = mySTEPOp->ImportSTEP(theFileName, theIsIgnoreUnits, false );
-  GEOM::GEOM_Object_ptr anObj;
+  GEOM::GEOM_Object_var anObj;
 
   if (aSeq->length() > 0) {
     anObj = aSeq->operator[](0);
   }
 
   endService( " GEOM_Superv_i::ImportSTEP" );
-  return anObj;
+  return anObj._retn();
 }
 
 //=============================================================================
@@ -3517,14 +3517,14 @@ GEOM::GEOM_Object_ptr GEOM_Superv_i::ImportIGES( const char* theFileName,
   MESSAGE("GEOM_Superv_i::ImportIGES");
   getIGESPluginOp();
   GEOM::ListOfGO* aSeq = myIGESOp->ImportIGES(theFileName, theIsIgnoreUnits );
-  GEOM::GEOM_Object_ptr anObj;
+  GEOM::GEOM_Object_var anObj;
 
   if (aSeq->length() > 0) {
     anObj = aSeq->operator[](0);
   }
 
   endService( " GEOM_Superv_i::ImportIGES" );
-  return anObj;
+  return anObj._retn();
 }
 
 //=============================================================================
@@ -3548,11 +3548,11 @@ CORBA::Boolean GEOM_Superv_i::ExportXAO( GEOM::GEOM_Object_ptr shape,
 //=============================================================================
 //  Import XAO
 //=============================================================================
-CORBA::Boolean GEOM_Superv_i::ImportXAO( const char* fileName,
-                                         GEOM::GEOM_Object_out shape,
-                                         GEOM::ListOfGO_out subShapes,
-                                         GEOM::ListOfGO_out groups,
-                                         GEOM::ListOfFields_out fields )
+CORBA::Boolean GEOM_Superv_i::ImportXAO( const char* /*fileName*/,
+                                         GEOM::GEOM_Object_out /*shape*/,
+                                         GEOM::ListOfGO_out /*subShapes*/,
+                                         GEOM::ListOfGO_out /*groups*/,
+                                         GEOM::ListOfFields_out /*fields*/ )
 {
   return false;
 }
index f1f653ad2cf1a59a6a8444eca971d326e34b0719..1229bf5951501fe193d8a0ad7061c3d8db631018 100644 (file)
@@ -140,7 +140,7 @@ public:
   CORBA::Boolean CanPublishInStudy(CORBA::Object_ptr theIOR);
   SALOMEDS::SObject_ptr PublishInStudy(SALOMEDS::SObject_ptr theSObject,
                                        CORBA::Object_ptr theObject,
-                                       const char* theName) throw (SALOME::SALOME_Exception) ;
+                                       const char* theName) ;
 
   GEOM::ListOfGO* PublishNamedShapesInStudy(//SALOMEDS::SObject_ptr theSObject,
                                             CORBA::Object_ptr theObject);
index df299aede7fa99c09cb6e30bbac51d98c2c48c18..a397691782ce0fbc9874382ee148b049f0cef9ca 100644 (file)
@@ -86,7 +86,7 @@ std::vector<int> GEOM_Swig_LocalSelector::getSelection()
   std::vector<int> ids;
   for (int i = 1; i <= n; i++)
     ids.push_back(aMap(i));
-  for (int i =0; i < ids.size(); i++)
+  for (int i =0; i < (int)ids.size(); i++)
     {
       MESSAGE("ids[" << i << "] = " << ids[i]);
     }
index b7bc006c2bce4173977eb1ce87eb2e401973629a..dbac62936f3dc657adddcdd1559da5edd9534b3d 100644 (file)
@@ -512,7 +512,7 @@ void GEOM_Swig::initLocalSelection( const char* theEntry, int theMode)
       SUIT_Application* app = SUIT_Session::session()->activeApplication();
       if ( app )
         {
-          SUIT_ViewWindow* window = app->desktop()->activeWindow();
+          //SUIT_ViewWindow* window = app->desktop()->activeWindow();
           SUIT_ViewWindow* wnd = 0;
           LightApp_Application* lapp = dynamic_cast<LightApp_Application*>(app);
           if ( lapp )
index 5b2d5ec3e0a899b083cec863a8243336772faf30..4caf7d6584597772f897ce44ec0edffc1dc291d3 100644 (file)
@@ -275,7 +275,7 @@ void GenerationGUI_FillingDlg::enterEvent(QEvent*)
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void GenerationGUI_FillingDlg::ValueChangedInSpinBox(double newValue)
+void GenerationGUI_FillingDlg::ValueChangedInSpinBox(double /*newValue*/)
 {
   processPreview();
 }
@@ -354,7 +354,7 @@ bool GenerationGUI_FillingDlg::execute(ObjectList& objects)
   GEOM::GEOM_I3DPrimOperations_var anOper =
     GEOM::GEOM_I3DPrimOperations::_narrow(getOperation());
 
-  GEOM::filling_oper_method aMethod;
+  GEOM::filling_oper_method aMethod = GEOM::FOM_Default; // todo: aMethod must be explicitly initialized to avoid warning (see below)
   switch (GroupPoints->ComboBox1->currentIndex())
   {
   case 0:  aMethod = GEOM::FOM_Default; break;
@@ -376,7 +376,7 @@ bool GenerationGUI_FillingDlg::execute(ObjectList& objects)
                         GroupPoints->SpinBox5->value(),
                         GroupPoints->SpinBox3->value(),
                         aMethod,
-                        GroupPoints->CheckBox1->isChecked());
+                        GroupPoints->CheckBox1->isChecked()); // todo: aMethod must be explicitly initialized to avoid warning (see below)
   if (!anObj->_is_nil())
   {
     if (!IsPreview())
index 670becfb0e9e3a550783a1237af366f42730ac26..410cf10a60d8189273574bac7b75d209df2366df 100644 (file)
@@ -641,7 +641,7 @@ void GenerationGUI_PrismDlg::onAddThickening(bool isChecked)
 // function : onChangeDirection(bool)
 // purpose  :
 //=================================================================================
-void GenerationGUI_PrismDlg::onChangeDirection(bool isChecked)
+void GenerationGUI_PrismDlg::onChangeDirection(bool /*isChecked*/)
 {
   processPreview();
 }
index bb91a41e347ad73a60a68f3bf0bd832c207a6270..8964cc110f54918ca44122c37f8eb806f60cf047 100644 (file)
@@ -355,7 +355,7 @@ void GroupGUI_GroupDlg::Init()
 // function : enterEvent()
 // purpose  :
 //=================================================================================
-void GroupGUI_GroupDlg::enterEvent(QEvent* e)
+void GroupGUI_GroupDlg::enterEvent(QEvent*)
 {
   if (!buttonCancel()->isEnabled())
     ActivateThisDialog();
@@ -547,7 +547,7 @@ void GroupGUI_GroupDlg::setInPlaceObj(GEOM::GEOM_Object_var theObj, const bool i
     GEOM::GEOM_ILocalOperations_var aLocOp = getGeomEngine()->GetILocalOperations();
 
     GEOM::ListOfGO_var aSubObjects = aShapesOp->MakeExplode(myInPlaceObj, getShapeType(), false);
-    for ( int i = 0; i < aSubObjects->length(); i++ )
+    for ( int i = 0; i < (int)aSubObjects->length(); i++ )
     {
       GEOM::ListOfLong_var aCurrList = aShapesOp->GetSameIDs( myMainObj, aSubObjects[i] );
       if( aCurrList->length() > 1 ) {
@@ -555,7 +555,7 @@ void GroupGUI_GroupDlg::setInPlaceObj(GEOM::GEOM_Object_var theObj, const bool i
         //      In case if GetSameIDs(...) method return more then one ID use
         //      GetSharedShapes(...) method to get sub-shapes of the second shape.
         GEOM::ListOfGO_var aSubObjects2 = aShapesOp->GetSharedShapes( myMainObj, aSubObjects[i], getShapeType() );
-        for( int j = 0; j < aSubObjects2->length(); j++ ) {
+        for( int j = 0; j < (int)aSubObjects2->length(); j++ ) {
           CORBA::Long aMainIndex =  aLocOp->GetSubShapeIndex( myMainObj, aSubObjects2[j] );
           CORBA::Long aPlaceIndex = aLocOp->GetSubShapeIndex( myInPlaceObj, aSubObjects[i]);
           if ( aMainIndex >= 0 && aPlaceIndex > 0 ) {
@@ -1008,6 +1008,7 @@ void GroupGUI_GroupDlg::setShapeType(const TopAbs_ShapeEnum theType)
   case TopAbs_EDGE:   anId = 1; break;
   case TopAbs_FACE:   anId = 2; break;
   case TopAbs_SOLID:  anId = 3; break;
+  default: break;
   }
   setConstructorId(anId);
   if (!myIsShapeType)
@@ -1024,7 +1025,7 @@ void GroupGUI_GroupDlg::setShapeType(const TopAbs_ShapeEnum theType)
 //=================================================================================
 void GroupGUI_GroupDlg::activateSelection()
 {
-  bool isApply = ((QPushButton*)sender() == buttonApply());
+  //bool isApply = ((QPushButton*)sender() == buttonApply());
   if(!isApplyAndClose())
     erasePreview(false);
 
@@ -1139,7 +1140,6 @@ void GroupGUI_GroupDlg::activateSelection()
           }
         }
       }
-      else ;
       aDisplayer->UnsetDisplayMode();
       aDisplayer->UnsetColor();
       aDisplayer->UpdateViewer();
@@ -1427,7 +1427,7 @@ void GroupGUI_GroupDlg::ClickOnOkFilter()
   TopoDS_Shape aMainShape = GEOM_Client::get_client().GetShape(GeometryGUI::GetGeomGen(), myMainObj);
   TopTools_IndexedMapOfShape aSubShapesMap;
   TopExp::MapShapes(aMainShape, aSubShapesMap);
-  SALOME_View* view = GEOM_Displayer::GetActiveView();
+  //SALOME_View* view = GEOM_Displayer::GetActiveView();
   getDisplayer()->Erase(myMainObj, false, false);
   CORBA::String_var aMainEntry = myMainObj->GetStudyEntry();
   QString anEntryBase = aMainEntry.in();
index 426d94ba44dcb7254e1eb38676a22f75832ccd05..8a90b997f50a3473f3e67b0761530e5d13e8d8fe 100644 (file)
@@ -115,7 +115,7 @@ IGESPlugin_ExportDriver::IGESPlugin_ExportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer IGESPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log) const
+Standard_Integer IGESPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
 {
   if (Label().IsNull()) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -179,10 +179,10 @@ Standard_Integer IGESPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log
  */
 //================================================================================
 bool IGESPlugin_ExportDriver::
-GetCreationInformation( std::string&             theOperationName,
-                        std::vector<GEOM_Param>& theParams )
+GetCreationInformation( std::string&             /*theOperationName*/,
+                        std::vector<GEOM_Param>& /*theParams*/ )
 {
   return false;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( IGESPlugin_ExportDriver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( IGESPlugin_ExportDriver,GEOM_BaseDriver )
index 381e75d8c86ec3a5105dfc9ceec0a152f4c35a20..5249f3c88127c5a7235ddc5bce4da0eeaa06b724 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( IGESPlugin_ExportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( IGESPlugin_ExportDriver, GEOM_BaseDriver )
 
 class IGESPlugin_ExportDriver : public GEOM_BaseDriver
 {
index de24920fa24b6bf161c767b9d16484bf66eded02..0bd7246ee7b022a235a8162a67a3a6f0e2ceecb4 100644 (file)
@@ -96,7 +96,7 @@ bool IGESPlugin_GUI::OnGUIEvent( const QString& theCommandID, SUIT_Desktop* pare
     getGeometryGUI()->getApp()->putInfo( tr("GEOM_PRP_COMMAND").arg( theCommandID ) );
   }
 
-  return true; // ?????????????
+  return result;
 }
 
 //=======================================================================
index 3bfa12bf3069f11ce82a0e26fc801ee2cef7be68..943f431838eedbc602eb52b60829ec3338f0462f 100644 (file)
@@ -76,7 +76,7 @@ IGESPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName,
 //=============================================================================
 TCollection_AsciiString
 IGESPlugin_IECallBack::ReadValue( const TCollection_AsciiString& theFileName,
-                                  const TCollection_AsciiString& theFormatName,
+                                  const TCollection_AsciiString& /*theFormatName*/,
                                   const TCollection_AsciiString& theParameterName )
 {
   IGESPlugin_IOperations* aPluginOperations = IGESPlugin_OperationsCreator::get( GetEngine() );
index a5472b0c6c836ab0e4762e4b131e2e5ec98c22f8..ffe65854e1f53f1dcecf225ee997a9ddb59085b7 100644 (file)
@@ -276,4 +276,4 @@ IGESPlugin_ImportDriver::GetValue( const TCollection_AsciiString& theFileName,
     return TCollection_AsciiString();
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( IGESPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( IGESPlugin_ImportDriver, GEOM_BaseDriver )
index 16e3449211b41d8ed65d4fa8bcd074ac16d18b5b..baa38004077985b6028da1064e6190b90cf6efc4 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( IGESPlugin_ImportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( IGESPlugin_ImportDriver, GEOM_BaseDriver )
 
 class IGESPlugin_ImportDriver : public GEOM_BaseDriver
 {
index f8ce1e52c5880e9e429323c0b116b3e97e3046dc..a3c043e5c6fdce4140d5f9d9d7bb17d3339a6c3f 100644 (file)
@@ -33,7 +33,7 @@ class QFileSystemWatcher;
 
 class MATERIAL_SALOME_EXPORT Material_ResourceMgr : public QObject, public QtxResourceMgr
 {
-  Q_OBJECT;
+  Q_OBJECT
 
   class Updater;
 
index 81b851e90606e3e672c8238a269c719b5c385dec..225165747d181117884082a1e976b76d88befeb0 100644 (file)
@@ -389,7 +389,7 @@ SALOME_Prs* MeasureGUI_AngleDlg::buildPrs()
         return aPrs;
       }
     }
-    catch(Standard_Failure) {
+    catch(Standard_Failure&) {
     }
   }
 
index d818734d841012e9057c7b885701def822d5e018..1cb97301390ef71184c78c80c0b095acd0565723 100644 (file)
@@ -273,7 +273,7 @@ bool MeasureGUI_AnnotationInteractor::eventFilter( QObject* theObject, QEvent* t
       {
         const Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext();
 
-        if ( anAISContext->IsHilighted( Handle(AIS_InteractiveObject)::DownCast( myActiveIO ) ) )
+        if ( anAISContext->IsHilighted( myActiveIO ) )
         {
           anAISContext->Unhilight( myActiveIO, Standard_False );
         }
index 2ffee21ee15ae01bf4d1ef31dbb4e71152358b00..d7e24df3f076ef135a4dedfbddd927fdfba79285 100644 (file)
 //=================================================================================
 MeasureGUI_CheckSelfIntersectionsDlg::MeasureGUI_CheckSelfIntersectionsDlg (GeometryGUI* GUI, QWidget* parent)
   : GEOMBase_Skeleton (GUI, parent, false),
+    myCurrConstrId    (-1),
+    myComputeButton1  (0),
     myTextView1       (0),
-    myTextView2       (0),
     mySelButton1      (0),
-    mySelButton2      (0),
     myEditObjName1    (0),
-    myEditObjName2    (0),
     myLevelBox        (0),
-    myComputeButton1  (0),
-    myComputeButton2  (0),
     myInteList1       (0),
     myShapeList1      (0),
+    myComputeButton2  (0),
+    myTextView2       (0),
+    mySelButton2      (0),
+    myEditObjName2    (0),
     myInteList2       (0),
-    myShapeList2      (0),
-    myCurrConstrId    (-1)
+    myShapeList2      (0)
 {
   SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
   QPixmap image0 (aResMgr->loadPixmap("GEOM", tr("ICON_DLG_CHECK_SELF_INTERSECTIONS")));
@@ -588,7 +588,7 @@ bool MeasureGUI_CheckSelfIntersectionsDlg::findSelfIntersections
     }
     nbPairs = getInters()->length()/2;
 
-    if (nbPairs*2 != getInters()->length()) {
+    if (nbPairs*2 != (int)getInters()->length()) {
       isOK = false;
     }
   }
index 63f8939aca40c2b0697aa3def94742216f3af657..ed79028342a305feab35c6c90ded0ebbbe34b869 100644 (file)
@@ -509,7 +509,7 @@ Handle(AIS_DiameterDimension) MeasureGUI_DimensionCreateTool::Diameter( const GE
           aPmin = aTrimmedCurve->FirstParameter();
           aPmax = aTrimmedCurve->LastParameter();
 
-          aCircle = Handle(Geom_Circle)::DownCast( aTrimmedCurve );
+          aCircle = Handle(Geom_Circle)::DownCast( aTrimmedCurve ); // todo: useless downcast: aCircle always NULL
         }
         break;
       }
@@ -550,7 +550,7 @@ Handle(AIS_DiameterDimension) MeasureGUI_DimensionCreateTool::Diameter( const GE
           aPmin = aTrimmedCurve->FirstParameter();
           aPmax = aTrimmedCurve->LastParameter();
 
-          aCircle = Handle(Geom_Circle)::DownCast( aTrimmedCurve );
+          aCircle = Handle(Geom_Circle)::DownCast( aTrimmedCurve ); // todo: useless downcast: aCircle always NULL
         }
 
         break;
@@ -579,6 +579,7 @@ Handle(AIS_DiameterDimension) MeasureGUI_DimensionCreateTool::Diameter( const GE
       // do not break, go to edge checking
       aMeasuredShape = anExpEdge;
     }
+    // fall through!
 
     case TopAbs_EDGE:
     {
@@ -627,6 +628,8 @@ Handle(AIS_DiameterDimension) MeasureGUI_DimensionCreateTool::Diameter( const GE
       }
     }
     break;
+  default:
+    break;
   }
 
   if ( aCircle.IsNull() )
index 1f197d5a34a884767d666b7932f013fb77ca10bb..dde212088834dded4e0aa9f867c685e78792e635 100644 (file)
@@ -169,7 +169,7 @@ MeasureGUI_DimensionInteractor::Operation
     return Operation_None;
   }
 
-  Standard_Real anAngTolerance = M_PI / 30.0; // 6 degree tolerance
+  //Standard_Real anAngTolerance = M_PI / 30.0; // 6 degree tolerance
 
   switch ( anOwner->SelectionMode() )
   {
@@ -330,7 +330,7 @@ void MeasureGUI_DimensionInteractor::MoveFlyoutFree( const Handle(V3d_View)& the
   gp_Pnt aPointOnBase = gp_Pnt( aFirstPoint.XYZ() + aBaseDir.XYZ() * aPointVector.Dot( aBaseDir ) );
 
   // snapping tolerance
-  Quantity_Length aSize[2];
+  Standard_Real aSize[2];
   theView->Size( aSize[0], aSize[1] );
   Standard_Real aSnapTolerance = 1e-2 * Max( aSize[0], aSize[1] );
 
@@ -618,7 +618,7 @@ void MeasureGUI_DimensionInteractor::MoveText( const Handle(V3d_View)& theView,
     const gp_Pnt& aFirstPoint  = anAngle->FirstPoint();
     const gp_Pnt& aSecondPoint = anAngle->SecondPoint();
 
-    Standard_Boolean isPositive = anAngle->GetFlyout() > 0.0;
+    //Standard_Boolean isPositive = anAngle->GetFlyout() > 0.0;
 
     gp_Dir aFirstDir  = gce_MakeDir( aCenterPoint, aFirstPoint );
     gp_Dir aSecondDir = gce_MakeDir( aCenterPoint, aSecondPoint );
@@ -871,7 +871,7 @@ gp_Pnt MeasureGUI_DimensionInteractor::ProjectPlane( const Handle(V3d_View)& the
 Standard_Real MeasureGUI_DimensionInteractor::SensitivityTolerance( const Handle(V3d_View)& theView )
 {
   // snapping tolerance
-  Quantity_Length aSize[2];
+  Standard_Real aSize[2];
   theView->Size( aSize[0], aSize[1] );
   return 1e-2 * Max( aSize[0], aSize[1] );
 }
index 60e41ce8ddbf62292767669fea1ffad3c5f30dd3..1281d006e7c76ec3b81de25bb430a14174511c00 100644 (file)
@@ -404,7 +404,7 @@ SALOME_Prs* MeasureGUI_DistanceDlg::buildPrs()
       return aPrs;
     }
   }
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     return 0;
   }
 }
@@ -422,7 +422,7 @@ GEOM::GEOM_IOperations_ptr MeasureGUI_DistanceDlg::createOperation()
 // function : isValid()
 // purpose  :
 //=================================================================================
-bool MeasureGUI_DistanceDlg::isValid (QString& msg)
+bool MeasureGUI_DistanceDlg::isValid (QString& /*msg*/)
 {
   return myObj1 && myObj2;
 }
index 2b9dd4f3b289b61568245e6872a0ed030d713e42..ae0ad64be8e1a5a1a3f7396846e0ed9f1f21ab66 100644 (file)
@@ -252,7 +252,7 @@ void MeasureGUI_FastCheckIntersectionsDlg::onCompute()
     TopExp::MapShapes(aSelShape2, anIndices2);
 
     //Sub-shapes of 1st Object
-    for (int i = 0; i < myInters1->length(); i++) {
+    for (int i = 0; i < (int)myInters1->length(); i++) {
       TopoDS_Shape aSubShape = anIndices1.FindKey(myInters1[i]);
       QString aType = GEOMBase::GetShapeTypeString(aSubShape);
       if (!aType.isEmpty())
@@ -262,7 +262,7 @@ void MeasureGUI_FastCheckIntersectionsDlg::onCompute()
     myShapeList1->selectAll();
 
     //Sub-shapes of second Object
-    for (int i = 0; i < myInters2->length(); i++) {
+    for (int i = 0; i < (int)myInters2->length(); i++) {
       TopoDS_Shape aSubShape = anIndices2.FindKey(myInters2[i]);
       QString aType = GEOMBase::GetShapeTypeString(aSubShape);
       if (!aType.isEmpty())
@@ -475,7 +475,7 @@ bool MeasureGUI_FastCheckIntersectionsDlg::findIntersections()
     GEOM::GEOM_IMeasureOperations::_narrow(getOperation());
   bool isOK = true;
 
-  bool HasInte;
+  bool HasInte = false;
   try {
     HasInte = anOper->FastIntersect(myObj1.get(), myObj2.get(), getTolerance(), getDeflection(), myInters1, myInters2);
   }
@@ -623,7 +623,7 @@ GEOM::ListOfGO_var MeasureGUI_FastCheckIntersectionsDlg::getLstObjFromListSelect
   for (i=0, anIter = aObjLstExist.begin(); anIter != aObjLstExist.end(); i++, ++anIter) {
     anObjLst[i] = *anIter;
   }
-  for (int j = 0; j < aObjLstCreate->length(); j++) {
+  for (int j = 0; j < (int)aObjLstCreate->length(); j++) {
     anObjLst[aObjLstExist.size()+j]=aObjLstCreate[j];
   }
   return  anObjLst._retn();
@@ -645,11 +645,11 @@ bool MeasureGUI_FastCheckIntersectionsDlg::execute(ObjectList& objects)
   //Collect general intersection list
   aCompList->length(nbObj);
   int i;
-  for (i = 0; i < aList1->length(); i++) {
+  for (i = 0; i < (int)aList1->length(); i++) {
     GEOMBase::PublishSubObject( aList1[i] );
     aCompList[i]=aList1[i];
   }
-  for (int j = 0; j < aList2->length(); j++) {
+  for (int j = 0; j < (int)aList2->length(); j++) {
     GEOMBase::PublishSubObject( aList2[j] );
     aCompList[i+j]=aList2[j];
   }
index 21b05da596bbafab7ea12fc0c313e2cc1a0c3a90..5a308344680afaa980bcfa7e4e2a53ee365e168c 100644 (file)
@@ -196,7 +196,7 @@ void MeasureGUI_ManageDimensionsDlg::StartSelection( const Selection theSelectio
 
     Handle(AIS_InteractiveContext) anAISContext = myOperatedViewer->getAISContext();
 
-    anAISContext->ClearCurrents( Standard_False );
+    anAISContext->ClearCurrents( Standard_False );  // todo: deprecated OCCT API
     anAISContext->ClearSelected( Standard_False );
     Handle(MeasureGUI_DimensionFilter) aFilter = new MeasureGUI_DimensionFilter( myEditObject->GetStudyEntry() );
 
@@ -358,7 +358,7 @@ void MeasureGUI_ManageDimensionsDlg::SelectionIntoArgument( const Selection theS
     anAISContext->InitSelected();
 
     Handle(AIS_InteractiveObject) anAIS;
-    anAIS = anAISContext->Current();
+    anAIS = anAISContext->Current(); // todo: deprecated OCCT API
 
     int aDimensionId = IdFromPrs( anAIS );
 
@@ -1233,7 +1233,7 @@ void MeasureGUI_ManageDimensionsDlg::SelectInViewer( SOCC_Viewer* theViewer, con
   {
     return;
   }
-  anAISContext->ClearCurrents( Standard_False );
+  anAISContext->ClearCurrents( Standard_False ); // todo: deprecated OCCT API
   SOCC_Prs* aPrs = dynamic_cast<SOCC_Prs*>( theViewer->CreatePrs( myEditObject->GetStudyEntry() ) );
 
   AIS_ListOfInteractive aListOfIO;
@@ -1264,7 +1264,7 @@ void MeasureGUI_ManageDimensionsDlg::SelectInViewer( SOCC_Viewer* theViewer, con
     anAISContext->Activate( anIO, AIS_DSM_Text );
 #endif
 
-    anAISContext->AddOrRemoveCurrentObject( anIO, Standard_False );
+    anAISContext->AddOrRemoveCurrentObject( anIO, Standard_False ); // todo: deprecated OCCT API
     anAISContext->UpdateCurrentViewer();
   }
 }
index 9765b77c9eb774ee1990d1cbd12e72bfb72aaa7f..09f9fb9593d18c938cddcf61a7751f13e6ed85e6 100644 (file)
@@ -64,8 +64,8 @@
 // class    : MeasureGUI_ShapeStatisticsDlg()
 //===========================================================================
 MeasureGUI_ShapeStatisticsDlg::MeasureGUI_ShapeStatisticsDlg( QWidget* parent, TopoDS_Shape aShape, TopAbs_ShapeEnum aSubShapeType )
-: GEOMBase_Helper( SUIT_Session::session()->activeApplication()->desktop() ),
-  QDialog( parent ),
+: QDialog( parent ),
+  GEOMBase_Helper( SUIT_Session::session()->activeApplication()->desktop() ),
   myHistogram ( 0 )
 {
   myShapes.push_back( aShape );
index 491e4825e0f630e50b0e353fadda88710cd2f8a9..ee6be6c19edba0e73329673000631d28d79201b8 100644 (file)
@@ -255,7 +255,7 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent
       // computed deflection coefficient is stored as absolute.
       Prs3d::GetDeflection (myshape, myDrawer);
 #endif
-    }
+    } // fall through!
     // End 0023271
     case CustomHighlight:
     {
@@ -333,7 +333,7 @@ void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresent
         else
           aDir = -aDirVec;
 
-        Prs3d_Arrow::Draw(aPrs, aP2, aDir, M_PI/180.*5., aDist/10.);
+        Prs3d_Arrow::Draw(aPrs->CurrentGroup(), aP2, aDir, M_PI/180.*5., aDist/10.);
       }
     }
   }
@@ -606,7 +606,7 @@ void GEOM_AISShape::drawField( const Handle(Prs3d_Presentation)& thePrs,
           aGroup->AddText (aText);
 #else
           Graphic3d_Vertex aVertex( aCenter.X(), aCenter.Y(), aCenter.Z() );
-          aGroup->Text( aString.toUtf8().constData(), aVertex, 14 );
+          aGroup->Text( aString.toUtf8().constData(), aVertex, 14 ); // deprecated API, to be removed (see above)
 #endif
         }
       }
@@ -681,7 +681,7 @@ void GEOM_AISShape::drawName( const Handle(Prs3d_Presentation)& thePrs )
   aGroup->AddText(aText);
 #else
   Graphic3d_Vertex aVertex( aCenter.X(), aCenter.Y(), aCenter.Z() );
-  aGroup->Text( TCollection_ExtendedString( aName ), aVertex, 16 );
+  aGroup->Text( TCollection_ExtendedString( aName ), aVertex, 16 ); // deprecated API, to be removed (see above)
 #endif
 }
 
index 1b782df454dde93cfb363471e59dfbcaffd2be9b..8b7192f47db36b16e54cadaa451e941e2f9c19d2 100644 (file)
@@ -71,7 +71,7 @@
 
 #include "SALOME_InteractiveObject.hxx"
 
-//vtkStandardNewMacro(GEOM_Actor);
+//vtkStandardNewMacro(GEOM_Actor)
 
 #ifndef MYDEBUG
 //#define MYDEBUG
@@ -724,8 +724,8 @@ const TopoDS_Shape& GEOM_Actor::getTopo() {
   return myShape;
 }
 
-void GEOM_Actor::setInputShape(const TopoDS_Shape& ashape, double adef1,
-                               int imode, bool isVector)
+void GEOM_Actor::setInputShape(const TopoDS_Shape& /*ashape*/, double /*adef1*/,
+                               int /*imode*/, bool /*isVector*/)
 {
 #ifdef MYDEBUG
   MESSAGE ( "GEOM_Actor::setInputShape" );
@@ -986,7 +986,7 @@ GEOM_Actor
 */
 bool
 GEOM_Actor
-::PreHighlight(vtkInteractorStyle *theInteractorStyle
+::PreHighlight(vtkInteractorStyle* /*theInteractorStyle*/
                SVTK_SelectionEvent* theSelectionEvent,
                bool theIsHighlight)
 {
index 810483a45467f1d30388b0904a275465aa194705..d84923213761523c37fcf7f336e6c7844e4e4e44 100644 (file)
@@ -59,7 +59,7 @@ typedef GEOM_SmartPtr<vtkAppendPolyData> PAppendFilter;
 class GEOM_OBJECT_EXPORT GEOM_Actor: public SALOME_Actor
 {
 public:
-  vtkTypeMacro(GEOM_Actor,SALOME_Actor);
+  vtkTypeMacro(GEOM_Actor,SALOME_Actor)
   static GEOM_Actor* New();
 
   void SetShape(const TopoDS_Shape& theShape,
index 368e7e8d1edcca758df7dfc166a6d9314dcab135..3b2a1566c4c4f5c0ef72549e5ab8e375c5df962f 100644 (file)
@@ -549,8 +549,8 @@ Bnd_Box GEOM_Annotation::TextBoundingBox() const
   unsigned int aResolution = GetContext()->CurrentViewer()->DefaultRenderingParams().Resolution;
   if ( aFont.Init( anAsp->Aspect()->Font().ToCString(),
                    anAsp->Aspect()->GetTextFontAspect(),
-                  (unsigned int)anAsp->Height(),
-                  aResolution ) )
+                   (unsigned int)anAsp->Height(),
+                   aResolution ) ) // deprecated API, to be removed (see above)
 #endif
   {
     const NCollection_String aText( (Standard_Utf16Char* )myText.ToExtString() );
@@ -807,7 +807,7 @@ void GEOM_Annotation::OpenGl_Annotation::Render( const Handle(OpenGl_Workspace)&
     // to avoid jittering when dragging text
     myTextDraw->SetPosition( OpenGl_Vec3( static_cast<float>( myAISObject->myPosition.X() ),
                                           static_cast<float>( myAISObject->myPosition.Y() ),
-                                          static_cast<float>( myAISObject->myPosition.Z() ) ) );
+                                          static_cast<float>( myAISObject->myPosition.Z() ) ) ); // todo: deprecated OCCT API
   }
 
   myTextDraw->Render( theWorkspace );
index 72a65ae5d774c78459464ea65aa3ec3a67ca46bb..f9d1ef6d8564e1ec6e92a57986f5900a24cd263b 100644 (file)
 #include <VTKViewer_TransformFilter.h>
 
  
-vtkStandardNewMacro(GEOM_DeviceActor);
+vtkStandardNewMacro(GEOM_DeviceActor)
  
 GEOM_DeviceActor::GEOM_DeviceActor() :
-  myStripper(vtkStripper::New(), true),
-  myPolyDataMapper(vtkPolyDataMapper::New(), true),
   myPolyDataNormals(vtkPolyDataNormals::New(), true),
+  myPolyDataMapper(vtkPolyDataMapper::New(), true),
+  myStripper(vtkStripper::New(), true),
   myActor(VTKViewer_Actor::New(), true),
   myTransformFilter(VTKViewer_TransformFilter::New())
 { 
@@ -66,9 +66,10 @@ SetInput(vtkAlgorithmOutput* thePolyData, bool theUseStripper)
     myTransformFilter->SetInputConnection(myStripper->GetOutputPort());
     myPolyDataMapper->SetInputConnection(myTransformFilter->GetOutputPort());
   }
-  else
+  else {
     myTransformFilter->SetInputConnection(thePolyData);
     myPolyDataMapper->SetInputConnection(myTransformFilter->GetOutputPort());
+  }
 }
  
 void 
index 6d576c825420c4d489d273d013c39f3e6e899f97..6e5f45b2cc3ab3ad76d78e63af577bf3bdb25aa1 100644 (file)
@@ -51,7 +51,7 @@ class vtkAlgorithmOutput;
 class VTK_EXPORT GEOM_DeviceActor: public vtkObject 
 {  
 public: 
-  vtkTypeMacro(GEOM_DeviceActor,vtkObject)
+  vtkTypeMacro(GEOM_DeviceActor,vtkObject)
   static GEOM_DeviceActor* New(); 
 
   void SetProperty(vtkProperty* theProperty);
index 84f1763d392a80919efde9538b1da98fafaecb79..6402cfae6e72392838d8e8a95ac514adac827840 100644 (file)
@@ -102,7 +102,7 @@ GEOM_OCCReader::~GEOM_OCCReader()
 //=======================================================================
 
 int GEOM_OCCReader::RequestData(vtkInformation *vtkNotUsed(request),
-                                vtkInformationVector **inputVector,
+                                vtkInformationVector **/*inputVector*/,
                                 vtkInformationVector *outputVector)
 {
   vtkInformation *outInfo = outputVector->GetInformationObject(0);
@@ -350,7 +350,7 @@ void GEOM_OCCReader::DrawIso(GeomAbs_IsoType T,
                                Standard_Real T2,
                                vtkPoints* Pts,
                                vtkCellArray* Cells,
-                               Standard_Integer& startidx)
+                               Standard_Integer& /*startidx*/)
 {
 
   Standard_Boolean halt = Standard_False;
@@ -785,7 +785,7 @@ void GEOM_OCCReader::TransferEdgeWData(const TopoDS_Edge& aEdge,
 // Purpose  : Transfer wireframe data for VERTEX
 //=======================================================================
 
-void GEOM_OCCReader::TransferVertexWData(const TopoDS_Vertex& aVertex,
+void GEOM_OCCReader::TransferVertexWData(const TopoDS_Vertex& /*aVertex*/,
                                          vtkPoints*           Pts,
                                          vtkCellArray*        Cells)
 {
@@ -824,9 +824,9 @@ void GEOM_OCCReader::TransferVertexWData(const TopoDS_Vertex& aVertex,
 // Purpose  : Transfer shading data for EDGE
 //=======================================================================
 
-void GEOM_OCCReader::TransferEdgeSData(const TopoDS_Edge& aFace,
-                                         vtkPoints* Pts,
-                                         vtkCellArray* Cells
+void GEOM_OCCReader::TransferEdgeSData(const TopoDS_Edge& /*aFace*/,
+                                       vtkPoints* /*Pts*/,
+                                       vtkCellArray* /*Cells*/
 {
 }
 
index b00dbd3dc75feb86ed1c864a5a2e7677f51cdaae..c649827ea821b885469e19627f7ac756791ac45a 100644 (file)
@@ -21,4 +21,4 @@
 
 #include <vtkObjectFactory.h>
 
-vtkStandardNewMacro(GEOM_PainterPolyDataMapper);
+vtkStandardNewMacro(GEOM_PainterPolyDataMapper)
index d12c8871785eb825b5f46071fc61546bb205ebf7..65940449b4c3115e617a45a90d4db7087181ba03 100644 (file)
@@ -40,15 +40,15 @@ public vtkPolyDataMapper
 {
  public:
 #ifndef VTK_OPENGL2
-  vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPainterPolyDataMapper);
+  vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPainterPolyDataMapper)
 #else
-  vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPolyDataMapper);
+  vtkTypeMacro(GEOM_PainterPolyDataMapper,vtkPolyDataMapper)
 #endif
 
 
   static GEOM_PainterPolyDataMapper* New();
 
-  virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) {}
+  virtual void RenderPiece(vtkRenderer* /*ren*/, vtkActor* /*act*/) {}
 
  protected:
   GEOM_PainterPolyDataMapper() {}
index 5f407f733853dbca4f3e204892064030d679022d..f6e04d7a254ab284f89cf0263b7cf135d16fb245 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <vtkObjectFactory.h>
 
-vtkStandardNewMacro( GEOM_VTKPropertyMaterial );
+vtkStandardNewMacro( GEOM_VTKPropertyMaterial )
 
 GEOM_VTKPropertyMaterial::GEOM_VTKPropertyMaterial()
 {
index 99d95a21f022cd2598781c6b4566b53fc15da139..39e5bf145376c4c9ffe6ced36546c26239787e7c 100644 (file)
@@ -38,7 +38,7 @@ protected:
   virtual                           ~GEOM_VTKPropertyMaterial();
 
 public:
-                                    vtkTypeMacro(GEOM_VTKPropertyMaterial, vtkProperty);
+                                    vtkTypeMacro(GEOM_VTKPropertyMaterial, vtkProperty)
 
                                     vtkSetMacro(Physical, bool);
                                     vtkGetMacro(Physical, bool);
index 568b8a9d78a000d5dfff1e67d4a7fe157d36685e..871b374ceac271e9d90a1d0b392ff78d00f00d75 100644 (file)
@@ -63,7 +63,7 @@ protected:
 
 public:
 
-                                vtkTypeMacro( GEOM_VTKTrihedronAxis, VTKViewer_Axis );
+                                vtkTypeMacro( GEOM_VTKTrihedronAxis, VTKViewer_Axis )
   static GEOM_VTKTrihedronAxis* New();
 
   void                          SetAxis( const gp_Ax1& theAxis, const int theRot, double theColor[ 3 ] );
@@ -79,7 +79,7 @@ private:
   vtkTransform*                 myTrsf;
 };
 
-vtkStandardNewMacro( GEOM_VTKTrihedronAxis );
+vtkStandardNewMacro( GEOM_VTKTrihedronAxis )
 
 GEOM_VTKTrihedronAxis::GEOM_VTKTrihedronAxis()
 {
@@ -197,7 +197,7 @@ void GEOM_VTKTrihedronAxis::SetColor( const double theColor[ 3 ] )
                 Placement of trihedron is changed with SetPlacement() method
 */
 
-vtkStandardNewMacro( GEOM_VTKTrihedron );
+vtkStandardNewMacro( GEOM_VTKTrihedron )
 
 GEOM_VTKTrihedron::GEOM_VTKTrihedron()
 {
index 865931c55780a7d798e03b1eb7cf35be61536259..0d85345f69ee7690503046973f4dec33ae7bdb21 100644 (file)
@@ -52,7 +52,7 @@ protected:
   virtual                           ~GEOM_VTKTrihedron();
 
 public:
-                                    vtkTypeMacro( GEOM_VTKTrihedron, SALOME_Actor );
+                                    vtkTypeMacro( GEOM_VTKTrihedron, SALOME_Actor )
   static GEOM_VTKTrihedron*         New();
 
   virtual double      GetSize() { return mySize;}
index c61ac738348e09098608e4ba645ee78661a41fcd..4be8d2909628f76262c1b2728ae403820f177f96 100644 (file)
@@ -37,7 +37,7 @@
 #include <vtkInformation.h>
 #include <vtkInformationVector.h>
 
-vtkStandardNewMacro(GEOM_EdgeSource);
+vtkStandardNewMacro(GEOM_EdgeSource)
  
 GEOM_EdgeSource::GEOM_EdgeSource() :
   myIsVector(false)
index b63de70fae6fc26e2e01d888a968c2b494838d9c..b663943511722b13a587e71163aeb179849a859b 100644 (file)
@@ -36,7 +36,7 @@ class vtkPolyData;
 class OCC2VTK_EXPORT GEOM_EdgeSource: public vtkPolyDataAlgorithm 
 { 
 public: 
-  vtkTypeMacro(GEOM_EdgeSource,vtkPolyDataAlgorithm)
+  vtkTypeMacro(GEOM_EdgeSource,vtkPolyDataAlgorithm)
   static GEOM_EdgeSource* New(); 
  
   void AddEdge (const TopoDS_Edge& theEdge,
index 56d26642897ec03e65920c84673a3dc4e8244ab1..16ee4bee9088c590dfe13fe20db1565b42e11be8 100644 (file)
@@ -37,7 +37,7 @@ class vtkPolyData;
 class OCC2VTK_EXPORT GEOM_FaceSource: public vtkPolyDataAlgorithm 
 { 
 public: 
-  vtkTypeMacro(GEOM_FaceSource,vtkPolyDataAlgorithm)
+  vtkTypeMacro(GEOM_FaceSource,vtkPolyDataAlgorithm)
  
   void AddFace(const TopoDS_Face& theFace); 
   void Clear(){ myFaceSet.Clear();} 
index 50bb9fcec56aa20cd5b02f6f913b2deb9d652aba..18d8e8bd9c3c8777ae451e0fc0c8727ba6923b64 100644 (file)
@@ -33,7 +33,7 @@
 #include <Poly_Triangulation.hxx>
 
 
-vtkStandardNewMacro(GEOM_ShadingFace);
+vtkStandardNewMacro(GEOM_ShadingFace)
  
 GEOM_ShadingFace::GEOM_ShadingFace() 
 { 
index 2b765a282ba8882a90500504bbe0bca5d54940d1..86201ed4a01117296d2747f495022d071cbe09c4 100644 (file)
@@ -26,7 +26,7 @@
 class OCC2VTK_EXPORT GEOM_ShadingFace: public GEOM_FaceSource 
 { 
 public: 
-  vtkTypeMacro(GEOM_ShadingFace,GEOM_FaceSource)
+  vtkTypeMacro(GEOM_ShadingFace,GEOM_FaceSource)
   static GEOM_ShadingFace* New(); 
  
   static  
index 90e45816d864909f1c67fee4faeb2a5d17c0b85e..70784a1c91bbbf2b0d9e9366bb6771981dada67a 100644 (file)
@@ -31,7 +31,7 @@
 #include <gp_Pnt.hxx>
 #include <BRep_Tool.hxx>
  
-vtkStandardNewMacro(GEOM_VertexSource);
+vtkStandardNewMacro(GEOM_VertexSource)
  
 GEOM_VertexSource::GEOM_VertexSource() 
 { 
index 086596f4d7938be14e1dcb13580e66471ccadc8a..5f8748518c3e6fabbf71e6a7346b5df85d10cb3e 100644 (file)
@@ -36,7 +36,7 @@ class vtkPolyData;
 class OCC2VTK_EXPORT GEOM_VertexSource: public vtkPolyDataAlgorithm
 { 
 public: 
-  vtkTypeMacro(GEOM_VertexSource,vtkPolyDataAlgorithm)
+  vtkTypeMacro(GEOM_VertexSource,vtkPolyDataAlgorithm)
   static GEOM_VertexSource* New(); 
  
   void AddVertex(const TopoDS_Vertex& theVertex); 
index 46579f1c1a72f78ec1b280110d478844cca6a43b..86830f78590fcbec85f02049539108693898b333 100644 (file)
@@ -35,7 +35,7 @@
 #include <BRep_Tool.hxx>
 #include <TColStd_Array1OfReal.hxx>
 
-vtkStandardNewMacro(GEOM_WireframeFace);
+vtkStandardNewMacro(GEOM_WireframeFace)
  
 GEOM_WireframeFace::GEOM_WireframeFace(): 
   Discret(15)
@@ -309,12 +309,14 @@ CreateIso_(const TopoDS_Face& theFace,
                 case GeomAbs_BSplineCurve :
                 case GeomAbs_OtherCurve :
                   for(j = 1; j <= theDiscret/2; j++){
-              Standard_Real aStep = (theIsoType == GeomAbs_IsoV) ? stepU*2. : stepV*2.;
-                  CreateIso__(S, theIsoType, U1, V1, aStep, thePolyData, thePts);
+                    Standard_Real aStep = (theIsoType == GeomAbs_IsoV) ? stepU*2. : stepV*2.;
+                    CreateIso__(S, theIsoType, U1, V1, aStep, thePolyData, thePts);
                     U1 += stepU*2.;
                     V1 += stepV*2.;
                   }
                   break;
+                default:
+                  break;
                 }
               }
       }
index 2b0ef15589cf5a2e038b7982e74998053c8e4541..e4cd8ad70c1bef14233517ff359d50f23b3b0593 100644 (file)
@@ -36,7 +36,7 @@ namespace GEOMUtils
 class OCC2VTK_EXPORT GEOM_WireframeFace: public GEOM_FaceSource 
 { 
 public: 
-  vtkTypeMacro(GEOM_WireframeFace,GEOM_FaceSource)
+  vtkTypeMacro(GEOM_WireframeFace,GEOM_FaceSource)
   static GEOM_WireframeFace* New(); 
  
   /*  vtkSetMacro(NbIso,int); 
index 6a257d44274db46e18fcfe58c3a0143d19b7208b..063bb91c9cb737c5cdeeab864b5016e2e52aac28 100644 (file)
@@ -178,7 +178,7 @@ namespace GEOM
         ret->ShallowCopy(myAppendFilter->GetOutput());
         myAppendFilter->Delete();
       }
-      catch(Standard_Failure) {
+      catch(Standard_Failure&) {
       }
     }
     return ret;
index df71b0cbc98f27790e266b929a5eab8c5ef85eb7..90af752fb034947a9ae11c425eb851f7bc766b1c 100644 (file)
@@ -302,7 +302,7 @@ bool OperationGUI_ArchimedeDlg::execute( ObjectList& objects )
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void OperationGUI_ArchimedeDlg::ValueChangedInSpinBox(double newValue)
+void OperationGUI_ArchimedeDlg::ValueChangedInSpinBox(double /*newValue*/)
 {
   processPreview();
 }
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());
index 0e8aa1a85808ee330aab03ab1064292b969e2085..55adc00a5dae9093603869060b3a08098392e14c 100644 (file)
@@ -182,7 +182,7 @@ void OperationGUI_GetSharedShapesDlg::initTypes()
 // function : ConstructorsClicked()
 // purpose  : Radio button management
 //=================================================================================
-void OperationGUI_GetSharedShapesDlg::ConstructorsClicked (int constructorId)
+void OperationGUI_GetSharedShapesDlg::ConstructorsClicked (int /*constructorId*/)
 {
   disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
   globalSelection();
index e4c6c5523b06c97f6c589b65b55216b9e4768e80..7517f61c4de2207d7d2115e16bb9cfd3bf1b207d 100644 (file)
@@ -317,7 +317,7 @@ void OperationGUI_PartitionDlg::SelectionIntoArgument()
     //myListMaterials.length( 0 ); // obsolete
 
     GEOM::shape_type type = GEOM::SHAPE;
-    for (int i = 0; i < myListShapes.length(); i++)
+    for (int i = 0; i < (int)myListShapes.length(); i++)
       type = qMin( type, myListShapes[i]->GetMaxShapeType() );
     int idx = qMax( 0, GroupPoints->ComboBox1->findData( type ) );
     GroupPoints->ComboBox1->setCurrentIndex( idx );
@@ -560,19 +560,19 @@ int OperationGUI_PartitionDlg::GetLimit() const
 QList<GEOM::GeomObjPtr> OperationGUI_PartitionDlg::getSourceObjects()
 {
   QList<GEOM::GeomObjPtr> res;
-  for (int i = 0; i < myListShapes.length(); i++) {
+  for (int i = 0; i < (int)myListShapes.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(myListShapes[i]);
     res << aGeomObjPtr;
   }
-  for (int i = 0; i < myListTools.length(); i++) {
+  for (int i = 0; i < (int)myListTools.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(myListTools[i]);
     res << aGeomObjPtr;
   }
-  for (int i = 0; i < myListRemoveInside.length(); i++) {
+  for (int i = 0; i < (int)myListRemoveInside.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(myListRemoveInside[i]);
     res << aGeomObjPtr;
   }
-  for (int i = 0; i < myListKeepInside.length(); i++) {
+  for (int i = 0; i < (int)myListKeepInside.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(myListKeepInside[i]);
     res << aGeomObjPtr;
   }
index 750aceac6c7c1774e92313c242b3ae3e1890a9c0..0c5c3de518f1a45768cb5ffb3c4f29bf7e1313af 100644 (file)
@@ -196,7 +196,7 @@ void PrimitiveGUI_FaceDlg::SetDoubleSpinBoxStep( double step )
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void PrimitiveGUI_FaceDlg::ValueChangedInSpinBox( double newValue )
+void PrimitiveGUI_FaceDlg::ValueChangedInSpinBox( double /*newValue*/ )
 {
   displayPreview(true);
 }
index 675d87d0b9e968548e7d0c62852e3687e996edfc..1e6f387f8e65f037ad5e6a19b92d26deb3c2073b 100644 (file)
@@ -311,7 +311,7 @@ GEOM::GEOM_IOperations_ptr RepairGUI_FuseEdgesDlg::createOperation()
 // function : isValid()
 // purpose  : Verify validity of input data
 //=================================================================================
-bool RepairGUI_FuseEdgesDlg::isValid (QString& msg)
+bool RepairGUI_FuseEdgesDlg::isValid (QString& /*msg*/)
 {
   return (!myShape->_is_nil());
 }
index 8921e9ede2aa1aa256f4298f1f1aa24b3d5354e0..b1702ee2e2e56db66eab0b778ffd9993749b3110 100644 (file)
@@ -165,6 +165,8 @@ RepairGUI_GlueDlg::RepairGUI_GlueDlg(GeometryGUI* theGeometryGUI, QWidget* paren
         aHelpFileName = "glue_faces_operation_page.html";
         break;
       }
+    default:
+      break;
   }
   setHelpFileName(aHelpFileName);
 
index 198562f21e25b15db83203faebac152ede1ec67a..64b650fece6592d0d851042fcee0ebd7849b9e11 100644 (file)
@@ -237,8 +237,8 @@ QWidget* RepairGUI_InspectObjectDlg::Delegate::createEditor( QWidget* parent,
 // purpose  : Constructs a RepairGUI_InspectObjectDlg which is a child of 'parent'.
 //=================================================================================
 RepairGUI_InspectObjectDlg::RepairGUI_InspectObjectDlg(GeometryGUI *theGeomGUI, SUIT_Desktop* parent )
-: GEOMBase_Helper       (parent),
-  QDialog               (parent),
+: QDialog               (parent),
+  GEOMBase_Helper       (parent),
   myGeomGUI             (theGeomGUI),
   myTreeObjects         (0),
   myFilteredTreeObjects (0),
@@ -247,14 +247,14 @@ RepairGUI_InspectObjectDlg::RepairGUI_InspectObjectDlg(GeometryGUI *theGeomGUI,
   myTolFilterGrp        (0),
   myShapeTypeBtnGrp     (0),
   myComparisonCompo     (0),
+  myTolEdit             (0),
   myMinTolValLabel      (0),
   myMaxTolValLabel      (0),
-  myTolEdit             (0),
   myTreesLayout         (0),
-  myTransparency        (0.0),
-  myIsSelectAll         (false),
   myMaxTol              (-1.),
-  myMinTol              (-1.)
+  myMinTol              (-1.),
+  myIsSelectAll         (false),
+  myTransparency        (0.0)
 {
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
   QIcon iconSelect( resMgr->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
@@ -1214,7 +1214,7 @@ void RepairGUI_InspectObjectDlg::clickOnPublish()
   GEOM::ListOfGO_var aList = anOper->MakeSubShapes( aMainObject, anArray );
 
   // publish sub-shapes
-  for ( int i = 0; i < aList->length(); i++ )
+  for ( int i = 0; i < (int)aList->length(); i++ )
     GeometryGUI::GetGeomGen()->AddInStudy( aList[i],
                                            anIndices.values().at(i).toStdString().c_str(), aMainObject );
 
index 1042c46ecc8541f3ed0c43066674639f80ae79e6..6450c33b45b0b218200cc0a6b1e98a7540b28c48 100644 (file)
@@ -150,7 +150,7 @@ void RepairGUI_LimitToleranceDlg::Init()
 // function : ConstructorsClicked()
 // purpose  : Radio button management
 //=================================================================================
-void RepairGUI_LimitToleranceDlg::ConstructorsClicked(int constructorId)
+void RepairGUI_LimitToleranceDlg::ConstructorsClicked(int /*constructorId*/)
 {
   disconnect(myGeomGUI->getApp()->selectionMgr(), 0, this, 0);
 
index 6f124bc32306d76708fce1edef9ac313bc4e91b6..c57a510820e3d3f35fb186fb875015af37ebfa0d 100644 (file)
@@ -241,7 +241,7 @@ void RepairGUI_RemoveExtraEdgesDlg::ActivateThisDialog()
 // function : enterEvent()
 // purpose  : Mouse enter onto the dialog to activate it
 //=================================================================================
-void RepairGUI_RemoveExtraEdgesDlg::enterEvent(QEvent* e)
+void RepairGUI_RemoveExtraEdgesDlg::enterEvent(QEvent*)
 {
   if ( !mainFrame()->GroupConstructors->isEnabled() )
     ActivateThisDialog();
@@ -274,7 +274,7 @@ GEOM::GEOM_IOperations_ptr RepairGUI_RemoveExtraEdgesDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_RemoveExtraEdgesDlg::isValid( QString& msg )
+bool RepairGUI_RemoveExtraEdgesDlg::isValid( QString& /*msg*/ )
 {
   return myOkObject;
 }
index a8ce60d9513fc92af932e1775268943370b4bb06..62820a2791ca02be5dae77d99da3d08677059131 100644 (file)
@@ -212,7 +212,7 @@ void RepairGUI_RemoveWebsDlg::ActivateThisDialog()
 // function : enterEvent()
 // purpose  : Mouse enter onto the dialog to activate it
 //=================================================================================
-void RepairGUI_RemoveWebsDlg::enterEvent (QEvent* e)
+void RepairGUI_RemoveWebsDlg::enterEvent (QEvent*)
 {
   if (!mainFrame()->GroupConstructors->isEnabled())
     ActivateThisDialog();
@@ -243,7 +243,7 @@ GEOM::GEOM_IOperations_ptr RepairGUI_RemoveWebsDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_RemoveWebsDlg::isValid (QString& msg)
+bool RepairGUI_RemoveWebsDlg::isValid (QString& /*msg*/)
 {
   return myOkObject;
 }
index 9cc75064089b4c01fe1cad94c1dde81009508be9..f49f068e92767f8594e24a0fd922b4864d6fe620 100644 (file)
@@ -524,7 +524,7 @@ void RepairGUI_ShapeProcessDlg::loadDefaults()
   anOp->GetShapeProcessParameters( anOperators, aParams, aValues );
 
   // check the default items-operators
-  for ( int i = 0; i < anOperators->length(); i++ ) {
+  for ( int i = 0; i < (int)anOperators->length(); i++ ) {
     //MESSAGE("-->"<<(const char*)anOperators[i]);
     QList<QListWidgetItem*> items = myOpList->findItems ( (const char*)anOperators[i], Qt::MatchFixedString );
     if ( items.count() ) 
@@ -541,7 +541,7 @@ void RepairGUI_ShapeProcessDlg::loadDefaults()
     if ( aParams->length() != aValues->length() )
       continue;
 
-    for ( int j = 0; j < aParams->length(); j++ ) {
+    for ( int j = 0; j < (int)aParams->length(); j++ ) {
       QWidget* aCtrl = getControl( (const char*)aParams[j] );
       setValue( aCtrl, set_convert( (const char*)aParams[j], aValues[j] ));
     }
@@ -684,7 +684,7 @@ bool RepairGUI_ShapeProcessDlg::execute( ObjectList& objects )
   */// -----------
 
   QStringList anErrorObjNames;
-  for ( int i = 0; i < myObjects->length(); i++ ) {
+  for ( int i = 0; i < (int)myObjects->length(); i++ ) {
     GEOM::GEOM_Object_var obj = myObjects[i];
     GEOM::GEOM_IHealingOperations_var anOper = GEOM::GEOM_IHealingOperations::_narrow( getOperation() );
     GEOM::GEOM_Object_var anObj = anOper->ProcessShape( obj, anOperators, aParams, aValues );
@@ -696,10 +696,10 @@ bool RepairGUI_ShapeProcessDlg::execute( ObjectList& objects )
       {
         QStringList aParameters;
 
-        for ( int i = 0; i < anOperators->length(); i++ )
+        for ( int i = 0; i < (int)anOperators->length(); i++ )
           aParameters << QString( anOperators[i] );
 
-        for ( int i = 0; i < aParams->length(); i++ )
+        for ( int i = 0; i < (int)aParams->length(); i++ )
           aParameters << QString( aParams[i] );
 
         aParameters << getTexts( aParams );
@@ -714,7 +714,7 @@ bool RepairGUI_ShapeProcessDlg::execute( ObjectList& objects )
   if ( !anErrorObjNames.empty() )
     MESSAGE( "ERRORS occurred while processing the following objects: " << anErrorObjNames.join( " " ).toLatin1().data() );
     
-  return anErrorObjNames.size() < myObjects->length(); // true if at least one object was OK, false if ALL objects were nil after Healing.
+  return anErrorObjNames.size() < (int)myObjects->length(); // true if at least one object was OK, false if ALL objects were nil after Healing.
 }
 
 //=================================================================================
@@ -839,14 +839,14 @@ GEOM::string_array* RepairGUI_ShapeProcessDlg::getParameters( const GEOM::string
   int i = 0, j = 0;
 
   // calculate the length of parameters
-  for ( i = 0, j = 0; i < theOperators.length(); i++ )
+  for ( i = 0, j = 0; i < (int)theOperators.length(); i++ )
     j += myValMap[ QString( theOperators[i].in() ) ].size();
   
   // set the new length of parameters
   aParams->length( j );
 
   // fill the parameters
-  for ( i = 0, j = 0; i < theOperators.length(); i++ ) {
+  for ( i = 0, j = 0; i < (int)theOperators.length(); i++ ) {
     QStringList aParamLst = myValMap[ QString( theOperators[i].in() ) ];
     foreach ( QString aParam, aParamLst ) {
       aParams[j++] = CORBA::string_dup( aParam.toLatin1().constData() );
@@ -868,7 +868,7 @@ GEOM::string_array* RepairGUI_ShapeProcessDlg::getValues( const GEOM::string_arr
   GEOM::string_array_var aValues = new GEOM::string_array();
   aValues->length( theParams.length() );
 
-  for ( int i = 0; i < theParams.length(); i++ ) {
+  for ( int i = 0; i < (int)theParams.length(); i++ ) {
     QWidget* aCtrl = getControl( (const char*)theParams[i] );
     if ( aCtrl )
       aValues[i] = get_convert( (const char*)theParams[i], getValue( aCtrl ));
@@ -885,7 +885,7 @@ QStringList RepairGUI_ShapeProcessDlg::getTexts( const GEOM::string_array& thePa
 {
   QStringList aTexts;
     
-  for ( int i = 0; i < theParams.length(); i++ ) {
+  for ( int i = 0; i < (int)theParams.length(); i++ ) {
     QWidget* aCtrl = getControl( (const char*)theParams[i] );
     if ( aCtrl )
     {
@@ -1000,7 +1000,7 @@ QList<GEOM::GeomObjPtr> RepairGUI_ShapeProcessDlg::getSourceObjects()
 {
   QList<GEOM::GeomObjPtr> res;
   GEOM::ListOfGO aListPtr(myObjects);
-  for (int i = 0; i < aListPtr.length(); i++) {
+  for (int i = 0; i < (int)aListPtr.length(); i++) {
     GEOM::GeomObjPtr aGeomObjPtr(aListPtr[i]);
     res << aGeomObjPtr;
   }
index 328e83190641ab6412c7c539f85743f9276817d2..9f437e47183c6ffad7f327b4de53f4bede3de02f 100644 (file)
@@ -237,7 +237,7 @@ void RepairGUI_UnionFacesDlg::ActivateThisDialog()
 // function : enterEvent()
 // purpose  : Mouse enter onto the dialog to activate it
 //=================================================================================
-void RepairGUI_UnionFacesDlg::enterEvent(QEvent* e)
+void RepairGUI_UnionFacesDlg::enterEvent(QEvent*)
 {
   if ( !mainFrame()->GroupConstructors->isEnabled() )
     ActivateThisDialog();
@@ -270,7 +270,7 @@ GEOM::GEOM_IOperations_ptr RepairGUI_UnionFacesDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool RepairGUI_UnionFacesDlg::isValid( QString& msg )
+bool RepairGUI_UnionFacesDlg::isValid( QString& /*msg*/ )
 {
   return myOkObject;
 }
index 52df8087c492b71d486bfc4ecd537f579e33c43f..969d4248f806ae1448e2560f28105e1d7c4d9d2d 100644 (file)
@@ -636,6 +636,7 @@ void Sketcher_Profile::ShapeFunctor::addSegmentLength( const TCollection_AsciiSt
 void Sketcher_Profile::ShapeFunctor::addSegmentX( const TCollection_AsciiString& x,
                                                   int CurrentIndex )
 {
+  (void)CurrentIndex; // unused in release mode
   myMove = none;
   myLength = x.RealValue();
   if ( Abs( myDx ) < Precision::Confusion() ) {
@@ -656,6 +657,7 @@ void Sketcher_Profile::ShapeFunctor::addSegmentX( const TCollection_AsciiString&
 void Sketcher_Profile::ShapeFunctor::addSegmentY( const TCollection_AsciiString& y,
                                                   int CurrentIndex )
 {
+  (void)CurrentIndex; // unused in release mode
   myMove = none;
   myLength = y.RealValue();
   if ( Abs( myDy ) < Precision::Confusion() ) {
@@ -1380,7 +1382,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentLength( const TCollection_AsciiStr
   \internal
 */
 void Sketcher_Profile::DumpFunctor::addSegmentX( const TCollection_AsciiString& x,
-                                                 int CurrentIndex )
+                                                 int /*CurrentIndex*/ )
 {
   myDescr += "sk.addSegmentX(";
   myDescr += x + ")";
@@ -1393,7 +1395,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentX( const TCollection_AsciiString&
   \internal
 */
 void Sketcher_Profile::DumpFunctor::addSegmentY( const TCollection_AsciiString& y,
-                                                 int CurrentIndex  )
+                                                 int /*CurrentIndex*/  )
 {
   myDescr += "sk.addSegmentY(";
   myDescr += y + ")";
@@ -1408,7 +1410,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentY( const TCollection_AsciiString&
 */
 void Sketcher_Profile::DumpFunctor::addSegmentAngleLength( const TCollection_AsciiString& angle,
                                                            const TCollection_AsciiString& length,
-                                                           int& CurrentIndex )
+                                                           int& /*CurrentIndex*/ )
 {
   double aAngle = angle.RealValue();
   if ( aAngle == 90 ) {
@@ -1430,7 +1432,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentAngleLength( const TCollection_Asc
 */
 void Sketcher_Profile::DumpFunctor::addSegmentAngleX( const TCollection_AsciiString& angle,
                                                       const TCollection_AsciiString& x,
-                                                      int& CurrentIndex )
+                                                      int& /*CurrentIndex*/ )
 {
   double aAngle = angle.RealValue();
   if ( aAngle == 90 ) {
@@ -1452,7 +1454,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentAngleX( const TCollection_AsciiStr
 */
 void Sketcher_Profile::DumpFunctor::addSegmentAngleY( const TCollection_AsciiString& angle,
                                                       const TCollection_AsciiString& y,
-                                                      int& CurrentIndex )
+                                                      int& /*CurrentIndex*/ )
 {
   double aAngle = angle.RealValue();
   if ( aAngle == 90 ) {
@@ -1476,7 +1478,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentAngleY( const TCollection_AsciiStr
 void Sketcher_Profile::DumpFunctor::addSegmentDirectionLength( const TCollection_AsciiString& dx,
                                                                const TCollection_AsciiString& dy,
                                                                const TCollection_AsciiString& length,
-                                                               int& CurrentIndex )
+                                                               int& /*CurrentIndex*/ )
 {
   myDescr += "sk.addSegmentDirectionLength(";
   myDescr += dx + ", " + dy + ", " + length + ")";
@@ -1493,7 +1495,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentDirectionLength( const TCollection
 void Sketcher_Profile::DumpFunctor::addSegmentDirectionX( const TCollection_AsciiString& dx,
                                                           const TCollection_AsciiString& dy,
                                                           const TCollection_AsciiString& x,
-                                                          int& CurrentIndex )
+                                                          int& /*CurrentIndex*/ )
 {
   myDescr += "sk.addSegmentDirectionX(";
   myDescr += dx + ", " + dy + ", " + x + ")";
@@ -1510,7 +1512,7 @@ void Sketcher_Profile::DumpFunctor::addSegmentDirectionX( const TCollection_Asci
 void Sketcher_Profile::DumpFunctor::addSegmentDirectionY( const TCollection_AsciiString& dx,
                                                           const TCollection_AsciiString& dy,
                                                           const TCollection_AsciiString& y,
-                                                          int& CurrentIndex )
+                                                          int& /*CurrentIndex*/ )
 {
   myDescr += "sk.addSegmentDirectionY(";
   myDescr += dx + ", " + dy + ", " + y + ")";
@@ -1642,7 +1644,7 @@ void Sketcher_Profile::DumpFunctor::addArcRadiusLength( const TCollection_AsciiS
 void Sketcher_Profile::DumpFunctor::addArcAngleRadiusLength( const TCollection_AsciiString& angle,
                                                              const TCollection_AsciiString& radius,
                                                              const TCollection_AsciiString& length ,
-                                                             int& CurrentIndex )
+                                                             int& /*CurrentIndex*/ )
 {
   double aAngle = angle.RealValue();
   if ( aAngle == 90 ) {
@@ -1668,7 +1670,7 @@ void Sketcher_Profile::DumpFunctor::addArcDirectionRadiusLength( const TCollecti
                                                                  const TCollection_AsciiString& dy,
                                                                  const TCollection_AsciiString& radius,
                                                                  const TCollection_AsciiString& length ,
-                                                                 int& CurrentIndex )
+                                                                 int& /*CurrentIndex*/ )
 {
   myDescr += "sk.addArcDirectionRadiusLength(";
   myDescr += dx + ", " + dy + ", " + radius + ", " + length + ")";
@@ -1800,7 +1802,7 @@ TCollection_AsciiString Sketcher_Profile::GetDump( bool* isDone )
   \param cmd sketcher script to parse
   \internal
 */
-void Sketcher_Profile::parse( const TCollection_AsciiString& cmd, Functor* functor )
+void Sketcher_Profile::parse( const TCollection_AsciiString& /*cmd*/, Functor* functor )
 {
   int CurrentIndex = 1;
   int NumberOfArg = 0;
index 5119a1e8cf9ac6e785015e5347949d18c27b6c88..cb307fcf5c7b648a9b6410b22ca3d31db9ebbac8 100644 (file)
@@ -58,7 +58,7 @@ STEPPlugin_ExportDriver::STEPPlugin_ExportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer STEPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log) const
+Standard_Integer STEPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
 {
   if (Label().IsNull()) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -135,7 +135,7 @@ Standard_Integer STEPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log
     if( status == IFSelect_RetDone )
       return 1;
   }
-  catch (Standard_Failure)
+  catch (Standard_Failure&)
   {
       //THROW_SALOME_CORBA_EXCEPTION("Exception caught in STEPExport", SALOME::BAD_PARAM);
   }
@@ -148,10 +148,10 @@ Standard_Integer STEPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log
  */
 //================================================================================
 bool STEPPlugin_ExportDriver::
-GetCreationInformation( std::string&             theOperationName,
-                        std::vector<GEOM_Param>& theParams )
+GetCreationInformation( std::string&             /*theOperationName*/,
+                        std::vector<GEOM_Param>& /*theParams*/ )
 {
   return false;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( STEPPlugin_ExportDriver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( STEPPlugin_ExportDriver,GEOM_BaseDriver )
index bf37006c4c805c8a4f667c5a4173f5fb469377e5..87a14f4d3ea2588a8018cf426b076971b8d4a454 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( STEPPlugin_ExportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( STEPPlugin_ExportDriver, GEOM_BaseDriver )
 
 class STEPPlugin_ExportDriver : public GEOM_BaseDriver
 {
index 042acf68e2c76b3051a689a0ff2413a260c84b7d..543b8f080c01712ee118b7588d6a4a6e9666336a 100644 (file)
@@ -48,7 +48,7 @@ STEPPlugin_IECallBack::~STEPPlugin_IECallBack()
 bool
 STEPPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
                                const TCollection_AsciiString& theFileName,
-                               const TCollection_AsciiString& theFormatName )
+                               const TCollection_AsciiString& /*theFormatName*/ )
 {
   STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() );
   const STEPPlugin_IOperations::LengthUnit aUnit = STEPPlugin_IOperations::LengthUnit_Meter;
@@ -78,7 +78,7 @@ STEPPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName,
 //=============================================================================
 TCollection_AsciiString
 STEPPlugin_IECallBack::ReadValue( const TCollection_AsciiString& theFileName,
-                                  const TCollection_AsciiString& theFormatName,
+                                  const TCollection_AsciiString& /*theFormatName*/,
                                   const TCollection_AsciiString& theParameterName )
 {
   STEPPlugin_IOperations* aPluginOperations = STEPPlugin_OperationsCreator::get( GetEngine() );
index 98c92c07a6a57c849036a1b570a237bf5f8e6131..8a0662f5cb291a5f70ed353ea08db095b1127e82 100644 (file)
@@ -877,4 +877,4 @@ STEPPlugin_ImportDriver::GetValue( const TCollection_AsciiString& theFileName,
   return aValue;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( STEPPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( STEPPlugin_ImportDriver, GEOM_BaseDriver )
index 4831b7434d94d75e3a31893666e767de44782b83..73aee0251fe073e1ca6ab6a7c160071375a1bb38 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( STEPPlugin_ImportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( STEPPlugin_ImportDriver, GEOM_BaseDriver )
 
 class STEPPlugin_ImportDriver : public GEOM_BaseDriver
 {
index daf5debbfe6af65907a17d0034ab782fb7a9f323..3d875d79f6f29876f0691812cc83b40394fbf94d 100644 (file)
@@ -110,7 +110,7 @@ Standard_Integer STLPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log)
     log->SetTouched(Label());
     return 1;
   }
-  catch( Standard_Failure )
+  catch( Standard_Failure& )
   {
     //THROW_SALOME_CORBA_EXCEPTION("Exception caught in ExportSTL", SALOME::BAD_PARAM);
   }
@@ -123,10 +123,10 @@ Standard_Integer STLPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log)
  */
 //================================================================================
 bool STLPlugin_ExportDriver::
-GetCreationInformation( std::string&             theOperationName,
-                        std::vector<GEOM_Param>& theParams )
+GetCreationInformation( std::string&             /*theOperationName*/,
+                        std::vector<GEOM_Param>& /*theParams*/ )
 {
   return false;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ExportDriver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ExportDriver,GEOM_BaseDriver )
index a9caa39b054d5c48833b101928cb63fed8ea28fc..90257eb09ba035c7c8ec36f0510e82b2d6da6fe2 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( STLPlugin_ExportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( STLPlugin_ExportDriver, GEOM_BaseDriver )
 
 class STLPlugin_ExportDriver : public GEOM_BaseDriver
 {
index 82c2015f5146cb6b2faeb20ce8f98825d088ce35..030713a2351a34b2231ea80aff3f684ca6a88f20 100644 (file)
@@ -96,7 +96,7 @@ bool STLPlugin_GUI::OnGUIEvent( const QString& theCommandID, SUIT_Desktop* paren
     getGeometryGUI()->getApp()->putInfo( tr("GEOM_PRP_COMMAND").arg( theCommandID ) );
   }
 
-  return true; // ?????????
+  return result;
 }
 
 //=======================================================================
index 18008c3582e76953fbceca1d1f759bc34f7fcee3..fcfb7ae8dc88b0ad1dc3e6ede3d7634733ad1f21 100644 (file)
@@ -64,7 +64,7 @@ STLPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
  */
 //=============================================================================
 Handle(TColStd_HSequenceOfTransient)
-STLPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName,
+STLPlugin_IECallBack::Import( const TCollection_AsciiString& /*theFormatName*/,
                               const TCollection_AsciiString& theFileName )
 {
   STLPlugin_IOperations* aPluginOperations = STLPlugin_OperationsCreator::get( GetEngine() );
index c9bc922210b1f0e15b627889efad5a246cfb08dc..8295cd7248468316bc096bdf8e22a176c9a230f2 100644 (file)
@@ -142,4 +142,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ImportDriver, GEOM_BaseDriver )
index 2524db3a17da503a28a9f872ce3cecd8ba4aff4e..ddb3ca62d07254780005afb72b51fadb79f68956 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( STLPlugin_ImportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( STLPlugin_ImportDriver, GEOM_BaseDriver )
 
 class STLPlugin_ImportDriver : public GEOM_BaseDriver
 {
index 6f026e8500e9dc1ab2a581bf917e662113d76193..dac0c895e2566939bd7812cef1f68bc930ce6e6f 100644 (file)
@@ -230,7 +230,7 @@ Standard_Boolean ShHealOper_FillHoles::prepareWires(const TopTools_SequenceOfSha
       if (!BRep_Tool::Degenerated (TopoDS::Edge (aExp.Current())))
         if(myEdgeFaces.Contains(aExp.Current()) && myEdgeFaces.FindFromKey(aExp.Current()).Extent() >1)
           continue;
-        aSeqEdges->Append(aExp.Current());
+      aSeqEdges->Append(aExp.Current()); // to do: mustn't this clause be within if(!BRep_Tool::Degenerated...)?
     }
   }
 
@@ -319,7 +319,7 @@ Handle(Geom_Surface) ShHealOper_FillHoles::buildSurface(const TopoDS_Wire& theWi
     theSenses    = aBuilder.Sense();
   }
 
-  catch (Standard_Failure) {
+  catch (Standard_Failure&) {
     aSurf.Nullify();
     return aSurf;
   }
index 85e6bd42753ec23560a0d2cf08b351c74c95175e..36a9e08cf3fe1cff2cf9e52525818b74337b1f4a 100644 (file)
@@ -429,9 +429,9 @@ void ShHealOper_RemoveFace::removePCurve(const TopoDS_Face& theFace)
     for(; aIterOtherFace.More() && aIsDeleted ; aIterOtherFace.Next()) {
       if(aIterOtherFace.Value().IsSame(theFace))
          continue;
-         TopoDS_Face aFaceOther = TopoDS::Face(aIterOtherFace.Value());
-         Handle(Geom_Surface) aSurf = BRep_Tool::Surface( aFaceOther);
-         aIsDeleted = (aSurf != aSurfDel);
+      TopoDS_Face aFaceOther = TopoDS::Face(aIterOtherFace.Value());
+      Handle(Geom_Surface) aSurf = BRep_Tool::Surface( aFaceOther);
+      aIsDeleted = (aSurf != aSurfDel);
     }
     
     TopoDS_Edge aEdge = TopoDS::Edge(myContext->Apply(aExpEdges.Current()));
index 54b3ad69200911d2d062e2c7a59ef9d53c031b87..f1276c8eab88cb670f43d220327547d99992b330 100644 (file)
@@ -347,7 +347,7 @@ void TransformationGUI_ExtensionDlg::enterEvent(QEvent*)
 // function : ValueChangedInSpinBox()
 // purpose  :
 //=================================================================================
-void TransformationGUI_ExtensionDlg::ValueChangedInSpinBox(double newValue)
+void TransformationGUI_ExtensionDlg::ValueChangedInSpinBox(double /*newValue*/)
 {
   processPreview();
 }
index 9e8e8a39d95ed7a4fe44ea98faf71fe85c00eb30..05a101f5f3dfad247a77578734371a56730c9bd2 100644 (file)
@@ -502,7 +502,7 @@ void TransformationGUI_MultiTranslationDlg::enterEvent (QEvent*)
 // function : TextValueChangedInSpinBox
 // purpose  :
 //=================================================================================
-void TransformationGUI_MultiTranslationDlg::TextValueChangedInSpinBox( const QString& s)
+void TransformationGUI_MultiTranslationDlg::TextValueChangedInSpinBox( const QString& )
 {
   QObject* send = (QObject*)sender();
   bool isDigit = true;
index 4d2dfa24c5c3619a3dca219d5624ed909b35a2c8..06ef756ae8bc774ad4155eb775f5c5d107dc35e7 100644 (file)
@@ -466,7 +466,7 @@ bool TransformationGUI_ScaleDlg::execute (ObjectList& objects)
         {
           anObj = anOper->ScaleShapeAlongAxesCopy(myObjects[i].get(), myPoint.get(), SpinBox_FX->value(),
                                                   SpinBox_FY->value(), SpinBox_FZ->value());
-          if (!anObj->_is_nil())
+          if (!anObj->_is_nil()) {
             if(!IsPreview()) {
               QStringList aParameters;
               aParameters<<SpinBox_FX->text();
@@ -475,6 +475,7 @@ bool TransformationGUI_ScaleDlg::execute (ObjectList& objects)
               anObj->SetParameters(aParameters.join(":").toUtf8().constData());
             }
             objects.push_back(anObj._retn());
+          }
         }
       }
       else
index cbe98f3663045b346d62ee7055df26ce931d3c25..530e58faf1f9f094a310bd3784d87e3349d545a9 100644 (file)
@@ -69,7 +69,7 @@ VTKPlugin_ExportDriver::VTKPlugin_ExportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer VTKPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log) const
+Standard_Integer VTKPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
 {
   if (Label().IsNull()) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -104,7 +104,7 @@ Standard_Integer VTKPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log)
 
     return 1;
   }
-  catch( Standard_Failure )
+  catch( Standard_Failure& )
   {
     //THROW_SALOME_CORBA_EXCEPTION("Exception caught in ExportVTK", SALOME::BAD_PARAM);
   }
@@ -117,10 +117,10 @@ Standard_Integer VTKPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log)
  */
 //================================================================================
 bool VTKPlugin_ExportDriver::
-GetCreationInformation( std::string&             theOperationName,
-                        std::vector<GEOM_Param>& theParams )
+GetCreationInformation( std::string&             /*theOperationName*/,
+                        std::vector<GEOM_Param>& /*theParams*/ )
 {
   return false;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT( VTKPlugin_ExportDriver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( VTKPlugin_ExportDriver,GEOM_BaseDriver )
index 251bb0139b8df4ca4a566286b0221c376db70d4f..41e5e77e6efd731948dd334ad13d5a0ce43637a0 100644 (file)
@@ -23,7 +23,7 @@
 // GEOM includes
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE( VTKPlugin_ExportDriver, GEOM_BaseDriver );
+DEFINE_STANDARD_HANDLE( VTKPlugin_ExportDriver, GEOM_BaseDriver )
 
 class VTKPlugin_ExportDriver : public GEOM_BaseDriver
 {
index 580bf1256c59204b7dbdde2f5b4ebd379104beb1..84cae2325fcb264305c849ad30590fc8bc498945 100644 (file)
@@ -88,7 +88,7 @@ bool VTKPlugin_GUI::OnGUIEvent( const QString& theCommandID, SUIT_Desktop* paren
     getGeometryGUI()->getApp()->putInfo( tr("GEOM_PRP_COMMAND").arg( theCommandID ) );
   }
 
-  return true; // ???????????
+  return result;
 }
 
 //=======================================================================
index 22bd538d7d7c071db2399ee262d3d331a59a33ac..218261e71e10be0d8558343bde0bf207c13e92db 100644 (file)
@@ -47,7 +47,7 @@ VTKPlugin_IECallBack::~VTKPlugin_IECallBack()
 //=============================================================================
 bool VTKPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
                                    const TCollection_AsciiString& theFileName,
-                                   const TCollection_AsciiString& theFormatName )
+                                   const TCollection_AsciiString& /*theFormatName*/ )
 {
   VTKPlugin_IOperations* aPluginOperations = VTKPlugin_OperationsCreator::get( GetEngine() );
   const double aDeflection = 0.001;
index 052d1b752397a74389b5d703f2e0d878f8eff7ab..b978747d137f3174d4c5f4a283b9d4f926c8b157 100644 (file)
 
 using namespace XAO;
 
-BooleanField::BooleanField(const XAO::Dimension& dimension,
-                           const int& nbElements, const int& nbComponents, const std::string& name)
+BooleanField::BooleanField(XAO::Dimension dimension,
+                           int nbElements, int nbComponents, const std::string& name)
     : Field(dimension, nbElements, nbComponents, name)
 {
 }
 
-Step* BooleanField::addNewStep(const int& step)
-throw (XAO_Exception)
+Step* BooleanField::addNewStep(int step)
 {
     return addStep(step, 0);
 }
 
-BooleanStep* BooleanField::addStep(const int& step)
-throw (XAO_Exception)
+BooleanStep* BooleanField::addStep(int step)
 {
     return addStep(step, 0);
 }
 
-BooleanStep* BooleanField::addStep(const int& step, const int& stamp)
-throw (XAO_Exception)
+BooleanStep* BooleanField::addStep(int step, int stamp)
 {
     if (hasStep(step))
         throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
@@ -53,8 +50,7 @@ throw (XAO_Exception)
     return bstep;
 }
 
-BooleanStep* BooleanField::getStep(const int& index)
-throw (XAO_Exception)
+BooleanStep* BooleanField::getStep(int index)
 {
     checkStepIndex(index);
     return (BooleanStep*)m_steps[index];
index fc49270c658bdab3f3bcc8b41ebe83319241e101..ecb74750607393d3e9d49a1f2311dc1a6b3190e8 100644 (file)
@@ -49,18 +49,18 @@ namespace XAO
          * @param nbComponents the number of components.
          * @param name the name of the field.
          */
-        BooleanField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name);
+        BooleanField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name);
 
-        virtual const XAO::Type getType() { return XAO::BOOLEAN; }
+        virtual XAO::Type getType() { return XAO::BOOLEAN; }
 
-        virtual Step* addNewStep(const int& step) throw (XAO_Exception);
+        virtual Step* addNewStep(int step);
 
         /**
          * Adds a new step.
          * @param step the number of the step.
          * @return the newly created step.
          */
-        BooleanStep* addStep(const int& step) throw (XAO_Exception);
+        BooleanStep* addStep(int step);
 
         /**
          * Adds a new step.
@@ -68,15 +68,14 @@ namespace XAO
          * @param stamp the stamp of the step.
          * @return the newly created step.
          */
-        BooleanStep* addStep(const int& step, const int& stamp)
-        throw (XAO_Exception);
+        BooleanStep* addStep(int step, int stamp);
 
         /**
          * Gets the step of given index.
          * @param index the index.
          * @return the step for the given index.
          */
-        BooleanStep* getStep(const int& index) throw (XAO_Exception);
+        BooleanStep* getStep(int index);
     };
 }
 
index 15e875f5b2d099a5c067097d762254e7d70436d7..97cff697f10c2fc6f1b6da450b400861e84c5486 100644 (file)
@@ -23,7 +23,7 @@
 
 using namespace XAO;
 
-BooleanStep::BooleanStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents)
+BooleanStep::BooleanStep(int step, int stamp, int nbElements, int nbComponents)
 {
     m_nbElements = nbElements;
     m_nbComponents = nbComponents;
@@ -56,8 +56,7 @@ std::vector<bool> BooleanStep::getValues()
     return result;
 }
 
-std::vector<bool> BooleanStep::getElement(const int& element)
-throw (XAO_Exception)
+std::vector<bool> BooleanStep::getElement(int element)
 {
     checkElementIndex(element);
 
@@ -65,8 +64,7 @@ throw (XAO_Exception)
     return result;
 }
 
-std::vector<bool> BooleanStep::getComponent(const int& component)
-throw (XAO_Exception)
+std::vector<bool> BooleanStep::getComponent(int component)
 {
     checkComponentIndex(component);
 
@@ -83,8 +81,7 @@ throw (XAO_Exception)
     return result;
 }
 
-const bool BooleanStep::getValue(const int& element, const int& component)
-throw (XAO_Exception)
+bool BooleanStep::getValue(int element, int component)
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -92,14 +89,12 @@ throw (XAO_Exception)
     return m_values[element][component];
 }
 
-const std::string BooleanStep::getStringValue(const int& element, const int& component)
-throw (XAO_Exception)
+const std::string BooleanStep::getStringValue(int element, int component)
 {
     return XaoUtils::booleanToString(getValue(element, component));
 }
 
 void BooleanStep::setValues(const std::vector<bool>& values)
-throw (XAO_Exception)
 {
     checkNbValues((int)values.size());
 
@@ -112,8 +107,7 @@ throw (XAO_Exception)
     }
 }
 
-void BooleanStep::setElement(const int& element, const std::vector<bool>& elements)
-throw (XAO_Exception)
+void BooleanStep::setElement(int element, const std::vector<bool>& elements)
 {
     checkElementIndex(element);
     checkNbComponents(elements.size());
@@ -122,8 +116,7 @@ throw (XAO_Exception)
         m_values[element][i] = elements[i];
 }
 
-void BooleanStep::setComponent(const int& component, const std::vector<bool>& components)
-throw (XAO_Exception)
+void BooleanStep::setComponent(int component, const std::vector<bool>& components)
 {
     checkComponentIndex(component);
     checkNbElements(components.size());
@@ -132,8 +125,7 @@ throw (XAO_Exception)
         m_values[i][component] = components[i];
 }
 
-void BooleanStep::setValue(const int& element, const int& component, const bool& value)
-throw (XAO_Exception)
+void BooleanStep::setValue(int element, int component, bool value)
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -141,8 +133,7 @@ throw (XAO_Exception)
     m_values[element][component] = value;
 }
 
-void BooleanStep::setStringValue(const int& element, const int& component, const std::string& value)
-throw (XAO_Exception)
+void BooleanStep::setStringValue(int element, int component, const std::string& value)
 {
     setValue(element, component, XaoUtils::stringToBoolean(value));
 }
index 39eb8d8b15c4b29b1ec0a4ca902e788a21e3713a..aa9628aab3969b0b46c723da60770055f95fdd6b 100644 (file)
@@ -49,9 +49,9 @@ namespace XAO
          * @param nbElements the number elements of the geometry.
          * @param nbComponents the number of components of the field.
          */
-        BooleanStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents);
+        BooleanStep(int step, int stamp, int nbElements, int nbComponents);
 
-        virtual const XAO::Type getType() { return XAO::BOOLEAN; }
+        virtual XAO::Type getType() { return XAO::BOOLEAN; }
 
         /**
          * Gets all the values in a vector by elements and by components.
@@ -64,14 +64,14 @@ namespace XAO
          * @param element the index of the element to get.
          * @return a vector containing all the values for the given element.
          */
-        std::vector<bool> getElement(const int& element) throw (XAO_Exception);
+        std::vector<bool> getElement(int element);
 
         /**
          * Gets all the values for a component.
          * @param component the index of the component to get.
          * @return a vector containing all the values for the given component.
          */
-        std::vector<bool> getComponent(const int& component) throw (XAO_Exception);
+        std::vector<bool> getComponent(int component);
 
         /**
          * Gets a value for an element and a component.
@@ -79,27 +79,27 @@ namespace XAO
          * @param component the index of the component.
          * @return the value.
          */
-        const bool getValue(const int& element, const int& component) throw (XAO_Exception);
+        bool getValue(int element, int component);
 
         /**
          * Sets all the values from a list.
          * @param values the list of values to set.
          */
-        void setValues(const std::vector<bool>& values) throw (XAO_Exception);
+        void setValues(const std::vector<bool>& values);
 
         /**
          * Sets the values for an element.
          * @param element the index of the element to set.
          * @param elements the values to set.
          */
-        void setElement(const int& element, const std::vector<bool>& elements) throw (XAO_Exception);
+        void setElement(int element, const std::vector<bool>& elements);
 
         /**
          * Sets the values for a component.
          * @param component the index of the component to set.
          * @param components the values to set.
          */
-        void setComponent(const int& component, const std::vector<bool>& components) throw (XAO_Exception);
+        void setComponent(int component, const std::vector<bool>& components);
 
         /**
          * Sets the value for an element and a component.
@@ -107,10 +107,10 @@ namespace XAO
          * @param component the index of the component.
          * @param value the value.
          */
-        void setValue(const int& element, const int& component, const bool& value) throw (XAO_Exception);
+        void setValue(int element, int component, bool value);
 
-        virtual const std::string getStringValue(const int& element, const int& component) throw (XAO_Exception);
-        virtual void setStringValue(const int& element, const int& component, const std::string& value)  throw (XAO_Exception);
+        virtual const std::string getStringValue(int element, int component);
+        virtual void setStringValue(int element, int component, const std::string& value);
 
     private:
         std::vector< std::vector<bool> > m_values;
index 4751570a5ef122dae1a295a228ca4b5a46ae0537..48174504dcc3c7c5247c1ae61af5392119a61b94 100644 (file)
@@ -66,7 +66,6 @@ void BrepGeometry::setShapeString(const std::string& shape)
 }
 
 void BrepGeometry::writeShapeFile(const std::string& fileName)
-throw (XAO_Exception)
 {
     bool res = BRepTools::Write(m_shape, fileName.c_str());
     if (!res)
@@ -74,7 +73,6 @@ throw (XAO_Exception)
 }
 
 void BrepGeometry::readShapeFile(const std::string& fileName)
-throw (XAO_Exception)
  {
     BRep_Builder builder;
     bool res = BRepTools::Read(m_shape, fileName.c_str(), builder);
@@ -136,8 +134,7 @@ void BrepGeometry::initListIds(const TopAbs_ShapeEnum& shapeType, GeometricEleme
     }
 }
 
-TopoDS_Shape BrepGeometry::getSubShape(const TopoDS_Shape& mainShape, const TopAbs_ShapeEnum& shapeType, const int& shapeIndex)
-throw (XAO_Exception)
+TopoDS_Shape BrepGeometry::getSubShape(const TopoDS_Shape& mainShape, const TopAbs_ShapeEnum& shapeType, int shapeIndex)
 {
     TopTools_MapOfShape mapShape;
     TopTools_ListOfShape listShape;
@@ -166,7 +163,7 @@ throw (XAO_Exception)
 }
 
 // -----------------------------
-const int BrepGeometry::countGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType)
+int BrepGeometry::countGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType)
 {
     int res = 0;
     TopExp_Explorer exp(shape, shapeType);
@@ -176,7 +173,7 @@ const int BrepGeometry::countGeometricalElements(const TopoDS_Shape& shape, cons
     return res;
 }
 
-std::vector<int> BrepGeometry::getGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType, const XAO::Dimension& dim)
+std::vector<int> BrepGeometry::getGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType, XAO::Dimension dim)
 {
     std::vector<int> indexList;
 
@@ -208,7 +205,7 @@ std::vector<int> BrepGeometry::getGeometricalElements(const TopoDS_Shape& shape,
     return indexList;
 }
 
-void BrepGeometry::getEdgeVertices(const int& edgeIndex, int& vertexA, int& vertexB)
+void BrepGeometry::getEdgeVertices(int edgeIndex, int& vertexA, int& vertexB)
 {
     TopoDS_Shape edge = getSubShape(m_shape, TopAbs_EDGE, edgeIndex);
     std::vector<int> vertices = getGeometricalElements(edge, TopAbs_VERTEX, XAO::VERTEX);
@@ -218,13 +215,13 @@ void BrepGeometry::getEdgeVertices(const int& edgeIndex, int& vertexA, int& vert
     vertexB = vertices[1];
 }
 
-const int BrepGeometry::countFaceWires(const int& faceIndex)
+int BrepGeometry::countFaceWires(int faceIndex)
 {
     TopoDS_Shape face = getSubShape(m_shape, TopAbs_FACE, faceIndex);
     return countGeometricalElements(face, TopAbs_WIRE);
 }
 
-std::vector<int> BrepGeometry::getFaceEdges(const int& faceIndex, const int& wireIndex)
+std::vector<int> BrepGeometry::getFaceEdges(int faceIndex, int wireIndex)
 {
     // get the face
     TopoDS_Shape face = getSubShape(m_shape, TopAbs_FACE, faceIndex);
@@ -233,21 +230,20 @@ std::vector<int> BrepGeometry::getFaceEdges(const int& faceIndex, const int& wir
     return getGeometricalElements(wire, TopAbs_EDGE, XAO::EDGE);
 }
 
-const int BrepGeometry::countSolidShells(const int& solidIndex)
+int BrepGeometry::countSolidShells(int solidIndex)
 {
     TopoDS_Shape solid = getSubShape(m_shape, TopAbs_SOLID, solidIndex);
     return countGeometricalElements(solid, TopAbs_SHELL);
 }
 
-std::vector<int> BrepGeometry::getSolidFaces(const int& solidIndex, const int& shellIndex)
+std::vector<int> BrepGeometry::getSolidFaces(int solidIndex, int shellIndex)
 {
     TopoDS_Shape solid = getSubShape(m_shape, TopAbs_SOLID, solidIndex);
     TopoDS_Shape shell = getSubShape(solid, TopAbs_SHELL, shellIndex);
     return getGeometricalElements(shell, TopAbs_FACE, XAO::FACE);
 }
 
-void BrepGeometry::getVertexXYZ(const int& vertexIndex, double& xCoord, double& yCoord, double& zCoord)
-throw (XAO_Exception)
+void BrepGeometry::getVertexXYZ(int vertexIndex, double& xCoord, double& yCoord, double& zCoord)
 {
     xCoord = 0.;
     yCoord = 0.;
@@ -268,7 +264,7 @@ throw (XAO_Exception)
 }
 
 // -----------------------------
-const double BrepGeometry::getEdgeLength(const int& edgeIndex)
+double BrepGeometry::getEdgeLength(int edgeIndex)
 {
     TopoDS_Shape edge = getSubShape(m_shape, TopAbs_EDGE, edgeIndex);
     GProp_GProps system;
@@ -276,7 +272,7 @@ const double BrepGeometry::getEdgeLength(const int& edgeIndex)
     return system.Mass();
 }
 
-const double BrepGeometry::getFaceArea(const int& faceIndex)
+double BrepGeometry::getFaceArea(int faceIndex)
 {
     TopoDS_Shape face = getSubShape(m_shape, TopAbs_FACE, faceIndex);
     GProp_GProps system;
@@ -284,7 +280,7 @@ const double BrepGeometry::getFaceArea(const int& faceIndex)
     return system.Mass();
 }
 
-const double BrepGeometry::getSolidVolume(const int& solidIndex)
+double BrepGeometry::getSolidVolume(int solidIndex)
 {
     TopoDS_Shape solid = getSubShape(m_shape, TopAbs_SOLID, solidIndex);
     GProp_GProps system;
@@ -293,50 +289,49 @@ const double BrepGeometry::getSolidVolume(const int& solidIndex)
 }
 
 // -----------------------------
-const int BrepGeometry::getVertexID(const int& index)
+int BrepGeometry::getVertexID(int index)
 {
     return XaoUtils::stringToInt(getVertexReference(index));
 }
 
-const int BrepGeometry::getEdgeID(const int& index)
+int BrepGeometry::getEdgeID(int index)
 {
     return XaoUtils::stringToInt(getEdgeReference(index));
 }
 
-const int BrepGeometry::getFaceID(const int& index)
+int BrepGeometry::getFaceID(int index)
 {
     return XaoUtils::stringToInt(getFaceReference(index));
 }
 
-const int BrepGeometry::getSolidID(const int& index)
+int BrepGeometry::getSolidID(int index)
 {
     return XaoUtils::stringToInt(getSolidReference(index));
 }
 
 // -----------------------------
-void BrepGeometry::setVertexID(const int& index, const int& id)
+void BrepGeometry::setVertexID(int index, int id)
 {
     setVertexReference(index, XaoUtils::intToString(id));
 }
 
-void BrepGeometry::setEdgeID(const int& index, const int& id)
+void BrepGeometry::setEdgeID(int index, int id)
 {
     setEdgeReference(index, XaoUtils::intToString(id));
 }
 
-void BrepGeometry::setFaceID(const int& index, const int& id)
+void BrepGeometry::setFaceID(int index, int id)
 {
     setEdgeReference(index, XaoUtils::intToString(id));
 }
 
-void BrepGeometry::setSolidID(const int& index, const int& id)
+void BrepGeometry::setSolidID(int index, int id)
 {
     setEdgeReference(index, XaoUtils::intToString(id));
 }
 
 // -----------------------------
-const int BrepGeometry::findElement(const XAO::Dimension& dim, const int& id)
-throw (XAO_Exception)
+int BrepGeometry::findElement(XAO::Dimension dim, int id)
 {
     if (dim == XAO::VERTEX)
         return findVertex(id);
@@ -350,68 +345,64 @@ throw (XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Unknown Dimension: " << dim);
 }
 
-const int BrepGeometry::findVertex(const int& id)
+int BrepGeometry::findVertex(int id)
 {
     return getVertexIndexByReference(XaoUtils::intToString(id));
 }
 
-const int BrepGeometry::findEdge(const int& id)
+int BrepGeometry::findEdge(int id)
 {
     return getEdgeIndexByReference(XaoUtils::intToString(id));
 }
 
-const int BrepGeometry::findFace(const int& id)
+int BrepGeometry::findFace(int id)
 {
     return getFaceIndexByReference(XaoUtils::intToString(id));
 }
 
-const int BrepGeometry::findSolid(const int& id)
+int BrepGeometry::findSolid(int id)
 {
     return getSolidIndexByReference(XaoUtils::intToString(id));
 }
 
 // -----------------------------
-const std::string BrepGeometry::findVertexName(const int& id)
+const std::string BrepGeometry::findVertexName(int id)
 {
     return getVertexName(findVertex(id));
 }
 
-const std::string BrepGeometry::findEdgeName(const int& id)
+const std::string BrepGeometry::findEdgeName(int id)
 {
     return getEdgeName(findEdge(id));
 }
 
-const std::string BrepGeometry::findFaceName(const int& id)
+const std::string BrepGeometry::findFaceName(int id)
 {
     return getFaceName(findFace(id));
 }
 
-const std::string BrepGeometry::findSolidName(const int& id)
+const std::string BrepGeometry::findSolidName(int id)
 {
     return getSolidName(findSolid(id));
 }
 
 // -----------------------------
-void BrepGeometry::changeVertexName(const int& id, const std::string& name)
-throw (XAO_Exception)
+void BrepGeometry::changeVertexName(int id, const std::string& name)
 {
     setVertexName(findVertex(id), name);
 }
 
-void BrepGeometry::changeEdgeName(const int& id, const std::string& name)
-throw (XAO_Exception)
+void BrepGeometry::changeEdgeName(int id, const std::string& name)
 {
     setEdgeName(findEdge(id), name);
 }
 
-void BrepGeometry::changeFaceName(const int& id, const std::string& name)
-throw (XAO_Exception)
+void BrepGeometry::changeFaceName(int id, const std::string& name)
 {
     setFaceName(findFace(id), name);
 }
 
-void BrepGeometry::changeSolidName(const int& id, const std::string& name)
-throw (XAO_Exception)
+void BrepGeometry::changeSolidName(int id, const std::string& name)
 {
     setSolidName(findSolid(id), name);
 }
index e0cd8f9de3bd6055fd47243ea4f75f496839631c..f34b17c4474a0d206c5bd2e48448fa810e68ed39 100644 (file)
@@ -61,7 +61,7 @@ namespace XAO
          * Gets the format of the geometry.
          * @return the format of the geometry.
          */
-        virtual const XAO::Format getFormat() { return XAO::BREP; }
+        virtual XAO::Format getFormat() { return XAO::BREP; }
 
         /**
          * Gets the shape as a string.
@@ -79,13 +79,13 @@ namespace XAO
          * Writes shape to a file
          * @param fileName the path to the file
          */
-        virtual void writeShapeFile(const std::string& fileName) throw (XAO_Exception);
+        virtual void writeShapeFile(const std::string& fileName) ;
 
         /**
          * Reads shape from a file
          * @param fileName the path to the file
          */
-        virtual void readShapeFile(const std::string& fileName) throw (XAO_Exception);
+        virtual void readShapeFile(const std::string& fileName) ;
 
 #ifdef SWIG
         %pythoncode %{
@@ -115,14 +115,14 @@ namespace XAO
          * @param vertexA
          * @param vertexB
          */
-        void getEdgeVertices(const int& edgeIndex, int& vertexA, int& vertexB);
+        void getEdgeVertices(int edgeIndex, int& vertexA, int& vertexB);
 
         /**
          * Gets the number of wires of a face (including holes).
          * @param faceIndex the index of the face.
          * @return the number of wires.
          */
-        const int countFaceWires(const int& faceIndex);
+        int countFaceWires(int faceIndex);
 
         /**
          * Gets the indices of the wires of the face.
@@ -130,14 +130,14 @@ namespace XAO
          * @param wireIndex the index of the wire.
          * @return the list of wires for the given face.
          */
-        std::vector<int> getFaceEdges(const int& faceIndex, const int& wireIndex);
+        std::vector<int> getFaceEdges(int faceIndex, int wireIndex);
 
         /**
          * Gets the number of shells of a solid (including cavities).
          * @param solidIndex the index of the solid.
          * @return the number of shells.
          */
-        const int countSolidShells(const int& solidIndex);
+        int countSolidShells(int solidIndex);
 
         /**
          * Gets the indices of the shells of the solids.
@@ -145,7 +145,7 @@ namespace XAO
          * @param shellIndex the index of the shell (for the given solid).
          * @return the list of shells for the given solid.
          */
-        std::vector<int> getSolidFaces(const int& solidIndex, const int& shellIndex);
+        std::vector<int> getSolidFaces(int solidIndex, int shellIndex);
 
         /**
          * Gets the coordinates of a vertex.
@@ -154,179 +154,179 @@ namespace XAO
          * @param yCoord the Y coordinate.
          * @param zCoord the Z coordinate.
          */
-        void getVertexXYZ(const int& vertexIndex, double& xCoord, double& yCoord, double& zCoord)
-        throw (XAO_Exception);
+        void getVertexXYZ(int vertexIndex, double& xCoord, double& yCoord, double& zCoord)
+        ;
 
         /**
          * Gets the length of an edge.
          * @param index the index of the edge.
          * @return the length of the edge.
          */
-        const double getEdgeLength(const int& index);
+        double getEdgeLength(int index);
 
         /**
          * Gets the are of a face.
          * @param index the index of a face.
          * @return the area of the face.
          */
-        const double getFaceArea(const int& index);
+        double getFaceArea(int index);
 
         /**
          * Gets the volume of a solid.
          * @param index the index of the solid.
          * @return the volume of the solid.
          */
-        const double getSolidVolume(const int& index);
+        double getSolidVolume(int index);
 
         /**
          * Gets the ID of a vertex.
          * @param index the index of the vertex.
          * @return the ID of the vertex.
          */
-        const int getVertexID(const int& index);
+        int getVertexID(int index);
 
         /**
          * Gets the ID of an edge.
          * @param index the index of the edge.
          * @return the ID of the edge.
          */
-        const int getEdgeID(const int& index);
+        int getEdgeID(int index);
 
         /**
          * Gets the ID of a face.
          * @param index the index of the face.
          * @return the ID of the face.
          */
-        const int getFaceID(const int& index);
+        int getFaceID(int index);
 
         /**
          * Gets the ID of a solid.
          * @param index the index of the solid.
          * @return the ID of the solid.
          */
-        const int getSolidID(const int& index);
+        int getSolidID(int index);
 
         /**
          * Sets the ID of a vertex.
          * @param index the index of the vertex to set.
          * @param id the id to set.
          */
-        void setVertexID(const int& index, const int& id);
+        void setVertexID(int index, int id);
 
         /**
          * Sets the ID of an edge.
          * @param index the index of the edge to set.
          * @param id the id to set.
          */
-        void setEdgeID(const int& index, const int& id);
+        void setEdgeID(int index, int id);
 
         /**
          * Sets the ID of a face.
          * @param index the index of the face to set.
          * @param id the id to set.
          */
-        void setFaceID(const int& index, const int& id);
+        void setFaceID(int index, int id);
 
         /**
          * Sets the ID of a solid.
          * @param index the index of the solid to set.
          * @param id the id to set.
          */
-        void setSolidID(const int& index, const int& id);
+        void setSolidID(int index, int id);
 
         /**
          * Finds a vertex with its ID.
          * @param id the ID of the vertex.
          * @return the index of the vertex.
          */
-        const int findVertex(const int& id);
+        int findVertex(int id);
 
         /**
          * Finds an edge with its ID.
          * @param id the ID of the edge.
          * @return the index of the edge.
          */
-        const int findEdge(const int& id);
+        int findEdge(int id);
 
         /**
          * Finds a face with its ID.
          * @param id the ID of the face.
          * @return the index of the face.
          */
-        const int findFace(const int& id);
+        int findFace(int id);
 
         /**
          * Finds a solid with its ID.
          * @param id the ID of the solid.
          * @return th index of the solid.
          */
-        const int findSolid(const int& id);
+        int findSolid(int id);
 
         /**
          * Finds the name of a vertex with its ID.
          * @param id the ID of the vertex.
          * @return the name of the vertex.
          */
-        const std::string findVertexName(const int& id);
+        const std::string findVertexName(int id);
 
         /**
          * Finds the name of an edge with its ID.
          * @param id the ID of the edge.
          * @return the name of the edge.
          */
-        const std::string findEdgeName(const int& id);
+        const std::string findEdgeName(int id);
 
         /**
          * Finds the name of a face with its ID.
          * @param id the ID of the face.
          * @return the name of the face.
          */
-        const std::string findFaceName(const int& id);
+        const std::string findFaceName(int id);
 
         /**
          * Finds the name of a solid with its ID.
          * @param id the ID of the solid.
          * @return the name of the solid.
          */
-        const std::string findSolidName(const int& id);
+        const std::string findSolidName(int id);
 
         /**
          * Changes the name of a vertex.
          * @param id the ID of the vertex.
          * @param name the name to set.
          */
-        void changeVertexName(const int& id, const std::string& name) throw (XAO_Exception);
+        void changeVertexName(int id, const std::string& name) ;
 
         /**
          * Changes the name of an edge.
          * @param id the ID of the edge
          * @param name the name to set.
          */
-        void changeEdgeName(const int& id, const std::string& name) throw (XAO_Exception);
+        void changeEdgeName(int id, const std::string& name) ;
 
         /**
          * Changes the name of a face.
          * @param id the ID of the face.
          * @param name the name to set.
          */
-        void changeFaceName(const int& id, const std::string& name) throw (XAO_Exception);
+        void changeFaceName(int id, const std::string& name) ;
 
         /**
          * Changes the name of a solid.
          * @param id the ID of the solid.
          * @param name the name to set.
          */
-        void changeSolidName(const int& id, const std::string& name) throw (XAO_Exception);
+        void changeSolidName(int id, const std::string& name) ;
 
     private:
         void initIds();
         void initListIds(const TopAbs_ShapeEnum& shapeType, GeometricElementList& eltList);
-        TopoDS_Shape getSubShape(const TopoDS_Shape& mainShape, const TopAbs_ShapeEnum& shapeType, const int& shapeIndex)
-            throw (XAO_Exception);
-        const int countGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType);
-        std::vector<int> getGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType, const XAO::Dimension& dim);
-        const int findElement(const XAO::Dimension& dim, const int& id)
-            throw (XAO_Exception);
+        TopoDS_Shape getSubShape(const TopoDS_Shape& mainShape, const TopAbs_ShapeEnum& shapeType, int shapeIndex)
+            ;
+        int countGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType);
+        std::vector<int> getGeometricalElements(const TopoDS_Shape& shape, const TopAbs_ShapeEnum& shapeType, XAO::Dimension dim);
+        int findElement(XAO::Dimension dim, int id)
+            ;
 
     private:
         TopoDS_Shape m_shape;
index fd93623f2d73424812240f2dc65c98ccf2b8b483..42449819e37f1ccf7ab451100cb195a53e59a899 100644 (file)
 
 using namespace XAO;
 
-DoubleField::DoubleField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name)
+DoubleField::DoubleField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name)
     : Field(dimension, nbElements, nbComponents, name)
 {
 }
 
-Step* DoubleField::addNewStep(const int& step)
-throw (XAO_Exception)
+Step* DoubleField::addNewStep(int step)
+
 {
     return addStep(step, 0);
 }
 
-DoubleStep* DoubleField::addStep(const int& step)
-throw (XAO_Exception)
+DoubleStep* DoubleField::addStep(int step)
+
 {
     return addStep(step, 0);
 }
 
-DoubleStep* DoubleField::addStep(const int& step, const int& stamp)
-throw (XAO_Exception)
+DoubleStep* DoubleField::addStep(int step, int stamp)
+
 {
     if (hasStep(step))
         throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
@@ -52,8 +52,8 @@ throw (XAO_Exception)
     return bstep;
 }
 
-DoubleStep* DoubleField::getStep(const int& index)
-throw (XAO_Exception)
+DoubleStep* DoubleField::getStep(int index)
+
 {
     checkStepIndex(index);
     return (DoubleStep*)m_steps[index];
index 55ba47a89d8209bc25b607e875908c70dbc39904..21d7030456965a44745f99f81b87447adf1e0d94 100644 (file)
@@ -49,18 +49,18 @@ namespace XAO
          * @param nbComponents the number of components.
          * @param name the name of the field.
          */
-        DoubleField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name);
+        DoubleField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name);
 
-        virtual const XAO::Type getType() { return XAO::DOUBLE; }
+        virtual XAO::Type getType() { return XAO::DOUBLE; }
 
-        virtual Step* addNewStep(const int& step) throw (XAO_Exception);
+        virtual Step* addNewStep(int step) ;
 
         /**
          * Adds a new step.
          * @param step the number of the step.
          * @return the newly created step.
          */
-        DoubleStep* addStep(const int& step) throw (XAO_Exception);
+        DoubleStep* addStep(int step) ;
 
         /**
          * Adds a new step.
@@ -68,14 +68,14 @@ namespace XAO
          * @param stamp the stamp of the step.
          * @return the newly created step.
          */
-        DoubleStep* addStep(const int& step, const int& stamp) throw (XAO_Exception);
+        DoubleStep* addStep(int step, int stamp) ;
 
         /**
          * Gets the step of given index.
          * @param index the index.
          * @return the step for the given index.
          */
-        DoubleStep* getStep(const int& index) throw (XAO_Exception);
+        DoubleStep* getStep(int index) ;
     };
 }
 
index 34fa09695e38654e6d60803430c78a08db36177c..991df7b360d3232be59dff0d788d19c9ec42afc3 100644 (file)
@@ -23,7 +23,7 @@
 
 using namespace XAO;
 
-DoubleStep::DoubleStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents)
+DoubleStep::DoubleStep(int step, int stamp, int nbElements, int nbComponents)
 {
     m_nbElements = nbElements;
     m_nbComponents = nbComponents;
@@ -56,8 +56,8 @@ std::vector<double> DoubleStep::getValues()
     return result;
 }
 
-std::vector<double> DoubleStep::getElement(const int& element)
-throw (XAO_Exception)
+std::vector<double> DoubleStep::getElement(int element)
+
 {
     checkElementIndex(element);
 
@@ -65,8 +65,8 @@ throw (XAO_Exception)
     return result;
 }
 
-std::vector<double> DoubleStep::getComponent(const int& component)
-throw (XAO_Exception)
+std::vector<double> DoubleStep::getComponent(int component)
+
 {
     checkComponentIndex(component);
 
@@ -83,8 +83,8 @@ throw (XAO_Exception)
     return result;
 }
 
-const double DoubleStep::getValue(const int& element, const int& component)
-throw (XAO_Exception)
+double DoubleStep::getValue(int element, int component)
+
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -92,14 +92,14 @@ throw (XAO_Exception)
     return m_values[element][component];
 }
 
-const std::string DoubleStep::getStringValue(const int& element, const int& component)
-throw (XAO_Exception)
+const std::string DoubleStep::getStringValue(int element, int component)
+
 {
     return XaoUtils::doubleToString(getValue(element, component));
 }
 
 void DoubleStep::setValues(const std::vector<double>& values)
-throw (XAO_Exception)
+
 {
     checkNbValues(values.size());
 
@@ -112,8 +112,8 @@ throw (XAO_Exception)
     }
 }
 
-void DoubleStep::setElement(const int& element, const std::vector<double>& elements)
-throw (XAO_Exception)
+void DoubleStep::setElement(int element, const std::vector<double>& elements)
+
 {
     checkElementIndex(element);
     checkNbComponents(elements.size());
@@ -122,8 +122,8 @@ throw (XAO_Exception)
         m_values[element][i] = elements[i];
 }
 
-void DoubleStep::setComponent(const int& component, const std::vector<double>& components)
-throw (XAO_Exception)
+void DoubleStep::setComponent(int component, const std::vector<double>& components)
+
 {
     checkElementIndex(component);
     checkNbElements(components.size());
@@ -132,8 +132,8 @@ throw (XAO_Exception)
         m_values[i][component] = components[i];
 }
 
-void DoubleStep::setValue(const int& element, const int& component, const double& value)
-throw (XAO_Exception)
+void DoubleStep::setValue(int element, int component, double value)
+
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -141,8 +141,8 @@ throw (XAO_Exception)
     m_values[element][component] = value;
 }
 
-void DoubleStep::setStringValue(const int& element, const int& component, const std::string& value)
-throw (XAO_Exception)
+void DoubleStep::setStringValue(int element, int component, const std::string& value)
+
 {
     setValue(element, component, XaoUtils::stringToDouble(value));
 }
index ae8516ea5bee1e65cbf2f3f2f0a110e1d9e0864c..bc67334ca175593464408cd41c1689255a1d2d28 100644 (file)
@@ -48,9 +48,9 @@ namespace XAO
          * @param nbElements the number elements of the geometry.
          * @param nbComponents the number of components of the field.
          */
-        DoubleStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents);
+        DoubleStep(int step, int stamp, int nbElements, int nbComponents);
 
-        virtual const XAO::Type getType() { return XAO::DOUBLE; }
+        virtual XAO::Type getType() { return XAO::DOUBLE; }
 
         /**
          * Gets all the values of the step as a list.
@@ -63,14 +63,14 @@ namespace XAO
          * @param element the index of the element.
          * @return a vector containing all the values for the given element.
          */
-        std::vector<double> getElement(const int& element) throw (XAO_Exception);
+        std::vector<double> getElement(int element) ;
 
         /**
          * Gets all the values for a given component.
          * @param component the index of the component.
          * @return a vector containing all the values for the given component.
          */
-        std::vector<double> getComponent(const int& component) throw (XAO_Exception);
+        std::vector<double> getComponent(int component) ;
 
         /**
          * Gets the value for an element and a component.
@@ -78,27 +78,27 @@ namespace XAO
          * @param component the index of the component.
          * @return the value for the given element and component.
          */
-        const double getValue(const int& element, const int& component) throw (XAO_Exception);
+        double getValue(int element, int component) ;
 
         /**
          * Sets all the values from a list.
          * @param values the list of values to set.
          */
-        void setValues(const std::vector<double>& values) throw (XAO_Exception);
+        void setValues(const std::vector<double>& values) ;
 
         /**
          * Sets the values for an element.
          * @param element the index of the element to set.
          * @param elements the values to set.
          */
-        void setElement(const int& element, const std::vector<double>& elements) throw (XAO_Exception);
+        void setElement(int element, const std::vector<double>& elements) ;
 
         /**
          * Sets the values for a component.
          * @param component the index of the component to set.
          * @param components the values to set.
          */
-        void setComponent(const int& component, const std::vector<double>& components) throw (XAO_Exception);
+        void setComponent(int component, const std::vector<double>& components) ;
 
         /**
          * Sets the value for an element and a component.
@@ -106,10 +106,10 @@ namespace XAO
          * @param component the index of the component.
          * @param value the value.
          */
-        void setValue(const int& element, const int& component, const double& value) throw (XAO_Exception);
+        void setValue(int element, int component, double value) ;
 
-        virtual const std::string getStringValue(const int& element, const int& component) throw (XAO_Exception);
-        virtual void setStringValue(const int& element, const int& component, const std::string& value) throw (XAO_Exception);
+        virtual const std::string getStringValue(int element, int component) ;
+        virtual void setStringValue(int element, int component, const std::string& value) ;
 
     private:
         std::vector< std::vector<double> > m_values;
index 3d76f9c0d4da1039a90d1b6319c49d00eda057b6..10da10787d0d81b47de6a986e8861f8ca2108808 100644 (file)
@@ -41,13 +41,13 @@ namespace XAO
         {
         }
 
-        virtual ~XAO_Exception() throw() {};
+        virtual ~XAO_Exception() noexcept {};
 
         /**
          * Returns the error message.
          * @return the error message.
          */
-        virtual const char* what() const throw ()
+        virtual const char* what() const noexcept
         {
             return m_message;
         }
index de7daac389d429a7058d64ab45bb63f16dbb48d6..6c2eeb16f499fa12e7707b1b5fb16fc1413edec2 100644 (file)
@@ -33,8 +33,8 @@ using namespace XAO;
 
 // -------------------------------------------------------
 
-Field::Field(const XAO::Dimension& dimension,
-             const int& nbElements, const int& nbComponents, const std::string& name)
+Field::Field(XAO::Dimension dimension,
+             int nbElements, int nbComponents, const std::string& name)
   : m_name(name), m_dimension(dimension),
     m_nbComponents(nbComponents), m_components(nbComponents, ""),
     m_nbElements(nbElements)
@@ -47,9 +47,8 @@ Field::~Field()
     delete m_steps[i];
 }
 
-Field* Field::createField(const XAO::Type& type, const XAO::Dimension& dimension,
-        const int& nbElements, const int& nbComponents, const std::string& name)
-throw (XAO_Exception)
+Field* Field::createField(XAO::Type type, XAO::Dimension dimension,
+        int nbElements, int nbComponents, const std::string& name)
 {
     if (type == XAO::BOOLEAN)
         return new BooleanField(dimension, nbElements, nbComponents, name);
@@ -63,22 +62,19 @@ throw (XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Bad Type: " << type);
 }
 
-const std::string Field::getComponentName(const int& index)
-throw (XAO_Exception)
+const std::string Field::getComponentName(int index)
 {
     checkComponent(index);
     return m_components[index];
 }
 
-void Field::setComponentName(const int& index, const std::string& name)
-throw (XAO_Exception)
+void Field::setComponentName(int index, const std::string& name)
 {
     checkComponent(index);
     m_components[index] = name;
 }
 
 void Field::setComponentsNames(const std::vector<std::string>& names)
-throw (XAO_Exception)
 {
     for (unsigned int  i = 0; i < names.size(); ++i)
     {
@@ -103,7 +99,7 @@ bool Field::removeStep(Step* step)
     return false;
 }
 
-bool Field::hasStep(const int& step)
+bool Field::hasStep(int step)
 {
     std::vector<Step*>::iterator it = m_steps.begin();
     for (; it != m_steps.end(); ++it)
@@ -116,8 +112,7 @@ bool Field::hasStep(const int& step)
     return false;
 }
 
-void Field::checkComponent(const int& component)
-throw (XAO_Exception)
+void Field::checkComponent(int component)
 {
     if (component < m_nbComponents && component >= 0)
         return;
@@ -126,8 +121,7 @@ throw (XAO_Exception)
                                      << m_nbComponents-1 << "]: " << component);
 }
 
-void Field::checkStepIndex(const int& step)
-throw (XAO_Exception)
+void Field::checkStepIndex(int step)
 {
   if (step < (int)m_steps.size() && step >= 0)
         return;
index 3f8296aed5fa80fd4cb7b8899a19d704cd8e4692..1d075699433909ebb20cabf0f660382dd71d2598 100644 (file)
@@ -52,8 +52,8 @@ namespace XAO
          * @param nbComponents the number of components.
          * @param name the name of the field.
          */
-        Field(const XAO::Dimension& dimension,
-              const int& nbElements, const int& nbComponents, const std::string& name);
+        Field(XAO::Dimension dimension,
+              int nbElements, int nbComponents, const std::string& name);
 
     public:
         /**
@@ -65,10 +65,9 @@ namespace XAO
          * @name the name of the field.
          * @return the created field.
          */
-        static Field* createField(const XAO::Type& type, const XAO::Dimension& dimension,
-                                  const int& nbElements, const int& nbComponents,
-                                  const std::string& name = std::string(""))
-        throw (XAO_Exception);
+        static Field* createField(XAO::Type type, XAO::Dimension dimension,
+                                  int nbElements, int nbComponents,
+                                  const std::string& name = std::string(""));
 
         /**
          * Destructor.
@@ -79,7 +78,7 @@ namespace XAO
          * Gets the Type of the field.
          * @return the Type of the field.
          */
-        virtual const XAO::Type getType() = 0;
+        virtual XAO::Type getType() = 0;
 
         /**
          * Gets the name of the Field.
@@ -103,7 +102,7 @@ namespace XAO
          * Gets the Dimension of the Field.
          * @return the Dimension of the Field.
          */
-        const XAO::Dimension getDimension() const
+        XAO::Dimension getDimension() const
         {
             return m_dimension;
         }
@@ -112,7 +111,7 @@ namespace XAO
          * Gets the number of elements of each step.
          * @return the number of elements of each step.
          */
-        const int countElements() const
+        int countElements() const
         {
             return m_nbElements;
         }
@@ -121,7 +120,7 @@ namespace XAO
          * Gets the number of components.
          * @return the number of components.
          */
-        const int countComponents() const
+        int countComponents() const
         {
             return m_nbComponents;
         }
@@ -130,7 +129,7 @@ namespace XAO
          * Gets the number of values for each step.
          * @return the number of values for each step.
          */
-        const int countValues() const
+        int countValues() const
         {
             return m_nbElements * m_nbComponents;
         }
@@ -139,34 +138,34 @@ namespace XAO
          * Gets the number of the steps.
          * @return the number of steps.
          */
-        const int countSteps() const { return m_steps.size(); }
+        int countSteps() const { return m_steps.size(); }
 
         /**
          * Gets the name of a component.
          * @param index the index of the component to get.
          * @return the name of the component for the given index.
          */
-        const std::string getComponentName(const int& index) throw (XAO_Exception);
+        const std::string getComponentName(int index);
 
         /**
          * Sets the name of a component.
          * @param componentIndex the index of the component to set.
          * @param name the name to set.
          */
-        void setComponentName(const int& componentIndex, const std::string& name) throw (XAO_Exception);
+        void setComponentName(int componentIndex, const std::string& name);
 
         /**
          * Sets the name of the components.
          * @param names the names to set.
          */
-        void setComponentsNames(const std::vector<std::string>& names) throw (XAO_Exception);
+        void setComponentsNames(const std::vector<std::string>& names);
 
         /**
          * Adds a new step of the same type than the field.
          * @param number the numer of the step.
          * @return the new create step.
          */
-        virtual Step* addNewStep(const int& number) throw (XAO_Exception) = 0;
+        virtual Step* addNewStep(int number) = 0;
 
         /**
          * Remove a step.
@@ -180,7 +179,7 @@ namespace XAO
          * @param step the step number.
          * @return true if the field has a step for the given number.
          */
-        bool hasStep(const int& step);
+        bool hasStep(int step);
 
         /**
          * Returns the first step.
@@ -195,8 +194,8 @@ namespace XAO
         stepIterator end() { return m_steps.end(); }
 
     protected:
-        void checkComponent(const int& component) throw (XAO_Exception);
-        void checkStepIndex(const int& step) throw (XAO_Exception);
+        void checkComponent(int component) ;
+        void checkStepIndex(int step) ;
 
     protected:
         /** The name of the Field. */
index cee2fc9ea19637eeef5102cd42e729f0a56aee3d..68d9bd2f49e5ca13ba324a7bcd5c94049a4cfe6e 100644 (file)
@@ -40,7 +40,7 @@ GeometricElement::~GeometricElement()
 {
 }
 
-const bool GeometricElement::hasName()
+bool GeometricElement::hasName()
 {
     return !m_name.empty();
 }
@@ -50,12 +50,12 @@ GeometricElementList::GeometricElementList()
     setSize(0);
 }
 
-GeometricElementList::GeometricElementList(const int& count)
+GeometricElementList::GeometricElementList(int count)
 {
     setSize(count);
 }
 
-void GeometricElementList::setSize(const int& nb)
+void GeometricElementList::setSize(int nb)
 {
     m_count = nb;
     m_elements.clear();
@@ -65,8 +65,7 @@ void GeometricElementList::setSize(const int& nb)
     }
 }
 
-void GeometricElementList::checkElementIndex(const int& index) const
-throw (XAO_Exception)
+void GeometricElementList::checkElementIndex(int index) const
 {
     if (m_count >= 0 && index < m_count)
         return;
@@ -75,51 +74,44 @@ throw (XAO_Exception)
                                      << m_count-1 << "]: " << index);
 }
 
-void GeometricElementList::setElement(const int& index, const std::string& name, const std::string& reference)
-throw (XAO_Exception)
+void GeometricElementList::setElement(int index, const std::string& name, const std::string& reference)
 {
     checkElementIndex(index);
     m_elements[index].setName(name);
     m_elements[index].setReference(reference);
 }
 
-const std::string GeometricElementList::getName(const int& index)
-throw (XAO_Exception)
+const std::string GeometricElementList::getName(int index)
 {
     checkElementIndex(index);
     return m_elements[index].getName();
 }
 
-void GeometricElementList::setName(const int& index, const std::string& name)
-throw (XAO_Exception)
+void GeometricElementList::setName(int index, const std::string& name)
 {
     checkElementIndex(index);
     m_elements[index].setName(name);
 }
 
-const bool GeometricElementList::hasName(const int& index)
-throw (XAO_Exception)
+bool GeometricElementList::hasName(int index)
 {
     checkElementIndex(index);
     return m_elements[index].hasName();
 }
 
-const std::string GeometricElementList::getReference(const int& index)
-throw (XAO_Exception)
+const std::string GeometricElementList::getReference(int index)
 {
     checkElementIndex(index);
     return m_elements[index].getReference();
 }
 
-void GeometricElementList::setReference(const int& index, const std::string& name)
-throw (XAO_Exception)
+void GeometricElementList::setReference(int index, const std::string& name)
 {
     checkElementIndex(index);
     m_elements[index].setReference(name);
 }
 
-const int GeometricElementList::getIndexByReference(const std::string& ref)
-throw (XAO_Exception)
+int GeometricElementList::getIndexByReference(const std::string& ref)
 {
     for (int index = 0; index < m_count; ++index)
     {
index 9dba418dfcc41de7f6bd05f1f278e9ca6fd554ff..f57ebdfb3673509e6aebc3ce4f56c18a58380b67 100644 (file)
@@ -78,7 +78,7 @@ namespace XAO
          * Checks if the element has a name.
          * @return true if the element has a name, false otherwise.
          */
-        const bool hasName();
+        bool hasName();
 
         /**
          * Gets the reference of the element.
@@ -120,7 +120,7 @@ namespace XAO
          * Constructor with size.
          * \param nb the size to set.
          */
-        GeometricElementList(const int& nb);
+        GeometricElementList(int nb);
 
         /**
          * Destructor.
@@ -131,14 +131,14 @@ namespace XAO
          * Gets the size of the list.
          * \return the size of the list.
          */
-        const int getSize() const { return m_count; }
+        int getSize() const { return m_count; }
 
         /**
          * Sets the size of the list.
          * \param nb the size to set.
          * \warning the list will be cleared.
          */
-        void setSize(const int& nb);
+        void setSize(int nb);
 
         /**
          * Sets the name and the reference of an element.
@@ -147,28 +147,28 @@ namespace XAO
          * \param reference the reference to set.
          * \throw XAO_Exception if index is bigger than the size of the list.
          */
-        void setElement(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception);
+        void setElement(int index, const std::string& name, const std::string& reference);
         /**
          * Gets the name of an element.
          * \param index the index of the element to set.
          * \return the name of the element with the given index.
          * \throw XAO_Exception if index is bigger than the size of the list.
          */
-        const std::string getName(const int& index) throw (XAO_Exception);
+        const std::string getName(int index);
         /**
          * Sets the name of an element.
          * \param index the index of the element.
          * \param name the name to set.
          * \throw XAO_Exception if index is bigger than the size of the list.
          */
-        void setName(const int& index, const std::string& name) throw (XAO_Exception);
+        void setName(int index, const std::string& name);
 
         /**
          * Checks if an element has a name.
          * @param index the index of the element.
          * @return true if the element has a name, false otherwise.
          */
-        const bool hasName(const int& index) throw (XAO_Exception);
+        bool hasName(int index);
 
         /**
          * Gets the reference of an element.
@@ -176,21 +176,21 @@ namespace XAO
          * \return the reference of the element.
          * \throw XAO_Exception if index is bigger than the size of the list.
          */
-        const std::string getReference(const int& index) throw (XAO_Exception);
+        const std::string getReference(int index);
         /**
          * Sets the reference of an element.
          * \param index the index of the element to set.
          * \param reference the reference to set.
          * \throw XAO_Exception if index is bigger than the size of the list.
          */
-        void setReference(const int& index, const std::string& reference) throw (XAO_Exception);
+        void setReference(int index, const std::string& reference);
 
         /**
          * Gets the index of an element using its reference.
          * \param reference the searched reference.
          * \return the index of the element or -1 if no element found.
          */
-        const int getIndexByReference(const std::string& reference) throw (XAO_Exception);
+        int getIndexByReference(const std::string& reference);
 
         /**
          * Iterator on the element of the list.
@@ -210,7 +210,7 @@ namespace XAO
         iterator end() { return m_elements.end(); }
 
     private:
-        void checkElementIndex(const int& index) const throw (XAO_Exception);
+        void checkElementIndex(int index) const;
 
     private:
         int m_count;
index 25e1c98c6ba48f53df6d7cda759f9dd8eeaa0d3e..bf8d52573b45ffcafed2d34fda31c592daa1d0eb 100644 (file)
@@ -30,14 +30,12 @@ Geometry::Geometry(const std::string& name)
     m_readOnly = false;
 }
 
-Geometry* Geometry::createGeometry(const XAO::Format& format)
-throw (XAO_Exception)
+Geometry* Geometry::createGeometry(XAO::Format format)
 {
     return createGeometry(format, "");
 }
 
-Geometry* Geometry::createGeometry(const XAO::Format& format, const std::string& name)
-throw (XAO_Exception)
+Geometry* Geometry::createGeometry(XAO::Format format, const std::string& name)
 {
     if (format == XAO::BREP)
         return new BrepGeometry(name);
@@ -50,14 +48,12 @@ Geometry::~Geometry()
 }
 
 void Geometry::checkReadOnly()
-throw (XAO_Exception)
 {
     if (m_readOnly)
         throw XAO_Exception("Geometry is read only.");
 }
 
-const int Geometry::countElements(const XAO::Dimension& dim) const
-throw (XAO_Exception)
+int Geometry::countElements(XAO::Dimension dim) const
 {
     if (dim == XAO::VERTEX)
         return countVertices();
@@ -73,8 +69,7 @@ throw (XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Unknown dimension:" << dim);
 }
 
-const std::string Geometry::getElementReference(const XAO::Dimension& dim, const int& index)
-throw (XAO_Exception)
+const std::string Geometry::getElementReference(XAO::Dimension dim, int index)
 {
     if (dim == XAO::VERTEX)
         return getVertexReference(index);
@@ -88,8 +83,7 @@ throw (XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Unknown dimension:" << dim);
 }
 
-const int Geometry::getElementIndexByReference(const XAO::Dimension& dim, const std::string& reference)
-throw (XAO_Exception)
+int Geometry::getElementIndexByReference(XAO::Dimension dim, const std::string& reference)
 {
     if (dim == XAO::VERTEX)
         return getVertexIndexByReference(reference);
@@ -103,8 +97,7 @@ throw (XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Unknown dimension:" << dim);
 }
 
-GeometricElementList::iterator Geometry::begin(const XAO::Dimension& dim)
-throw (XAO_Exception)
+GeometricElementList::iterator Geometry::begin(XAO::Dimension dim)
 {
     if (dim == XAO::VERTEX)
         return m_vertices.begin();
@@ -118,8 +111,7 @@ throw (XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Unknown dimension:" << dim);
 }
 
-GeometricElementList::iterator Geometry::end(const XAO::Dimension& dim)
-throw (XAO_Exception)
+GeometricElementList::iterator Geometry::end(XAO::Dimension dim)
 {
     if (dim == XAO::VERTEX)
         return m_vertices.end();
@@ -133,64 +125,64 @@ throw (XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Unknown dimension:" << dim);
 }
 
-void Geometry::setCountVertices(const int& nb) throw (XAO_Exception)
+void Geometry::setCountVertices(int nb) 
 {
     checkReadOnly();
     m_vertices.setSize(nb);
 }
-void Geometry::setCountEdges(const int& nb) throw (XAO_Exception)
+void Geometry::setCountEdges(int nb) 
 {
     checkReadOnly();
     m_edges.setSize(nb);
 }
-void Geometry::setCountFaces(const int& nb) throw (XAO_Exception)
+void Geometry::setCountFaces(int nb) 
 {
     checkReadOnly();
     m_faces.setSize(nb);
 }
-void Geometry::setCountSolids(const int& nb) throw (XAO_Exception)
+void Geometry::setCountSolids(int nb) 
 {
     checkReadOnly();
     m_solids.setSize(nb);
 }
 
-void Geometry::setVertexReference(const int& index, const std::string& reference) throw (XAO_Exception)
+void Geometry::setVertexReference(int index, const std::string& reference) 
 {
     checkReadOnly();
     m_vertices.setReference(index, reference);
 }
-void Geometry::setEdgeReference(const int& index, const std::string& reference) throw (XAO_Exception)
+void Geometry::setEdgeReference(int index, const std::string& reference) 
 {
     checkReadOnly();
     m_edges.setReference(index, reference);
 }
-void Geometry::setFaceReference(const int& index, const std::string& reference) throw (XAO_Exception)
+void Geometry::setFaceReference(int index, const std::string& reference) 
 {
     checkReadOnly();
     m_faces.setReference(index, reference);
 }
-void Geometry::setSolidReference(const int& index, const std::string& reference) throw (XAO_Exception)
+void Geometry::setSolidReference(int index, const std::string& reference) 
 {
     checkReadOnly();
     m_solids.setReference(index, reference);
 }
 
-void Geometry::setVertex(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception)
+void Geometry::setVertex(int index, const std::string& name, const std::string& reference) 
 {
     checkReadOnly();
     m_vertices.setElement(index, name, reference);
 }
-void Geometry::setEdge(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception)
+void Geometry::setEdge(int index, const std::string& name, const std::string& reference) 
 {
     checkReadOnly();
     m_edges.setElement(index, name, reference);
 }
-void Geometry::setFace(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception)
+void Geometry::setFace(int index, const std::string& name, const std::string& reference) 
 {
     checkReadOnly();
     m_faces.setElement(index, name, reference);
 }
-void Geometry::setSolid(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception)
+void Geometry::setSolid(int index, const std::string& name, const std::string& reference) 
 {
     checkReadOnly();
     m_solids.setElement(index, name, reference);
index 2ac3d558828f89d19fe8e011755168832cf86de4..210450cf966aab4c5fa22b59c0c940a0079bc665 100644 (file)
@@ -55,7 +55,7 @@ namespace XAO
          * @param format the format of the geometry.
          * @return the created geometry.
          */
-        static Geometry* createGeometry(const XAO::Format& format) throw (XAO_Exception);
+        static Geometry* createGeometry(XAO::Format format) ;
 
         /**
          * Constructor.
@@ -63,8 +63,7 @@ namespace XAO
          * @name name the name of the geometry.
          * @return the created geometry.
          */
-        static Geometry* createGeometry(const XAO::Format& format, const std::string& name)
-        throw (XAO_Exception);
+        static Geometry* createGeometry(XAO::Format format, const std::string& name);
 
         /** Destructor. */
         virtual ~Geometry();
@@ -90,63 +89,63 @@ namespace XAO
          * Gets the format of the geometry.
          * @return the format of the geometry.
          */
-        virtual const XAO::Format getFormat() = 0;
+        virtual XAO::Format getFormat() = 0;
 
         virtual const std::string getShapeString() = 0;
         virtual void setShapeString(const std::string& shape) = 0;
         virtual void writeShapeFile(const std::string& fileName) = 0;
         virtual void readShapeFile(const std::string& fileName) = 0;
 
-        const int countElements(const XAO::Dimension& dim) const throw (XAO_Exception);
-        const int countVertices() const { return m_vertices.getSize(); }
-        const int countEdges() const { return m_edges.getSize(); }
-        const int countFaces() const { return m_faces.getSize(); }
-        const int countSolids() const { return m_solids.getSize(); }
-
-        void setCountVertices(const int& nb) throw (XAO_Exception);
-        void setCountEdges(const int& nb) throw (XAO_Exception);
-        void setCountFaces(const int& nb) throw (XAO_Exception);
-        void setCountSolids(const int& nb) throw (XAO_Exception);
-
-        const std::string getVertexName(const int& index) throw (XAO_Exception) { return m_vertices.getName(index); }
-        const std::string getEdgeName(const int& index) throw (XAO_Exception) { return m_edges.getName(index); }
-        const std::string getFaceName(const int& index) throw (XAO_Exception) { return m_faces.getName(index); }
-        const std::string getSolidName(const int& index) throw (XAO_Exception) { return m_solids.getName(index); }
-
-        void setVertexName(const int& index, const std::string& name) throw (XAO_Exception) { m_vertices.setName(index, name); }
-        void setEdgeName(const int& index, const std::string& name) throw (XAO_Exception) { m_edges.setName(index, name); }
-        void setFaceName(const int& index, const std::string& name) throw (XAO_Exception) { m_faces.setName(index, name); }
-        void setSolidName(const int& index, const std::string& name) throw (XAO_Exception) { m_solids.setName(index, name); }
-
-        const bool hasVertexName(const int& index) throw (XAO_Exception) { return m_vertices.hasName(index); }
-        const bool hasEdgeName(const int& index) throw (XAO_Exception) { return m_edges.hasName(index); }
-        const bool hasFaceName(const int& index) throw (XAO_Exception) { return m_faces.hasName(index); }
-        const bool hasSolidName(const int& index) throw (XAO_Exception) { return m_solids.hasName(index); }
-
-        const std::string getVertexReference(const int& index) throw (XAO_Exception) { return m_vertices.getReference(index); }
-        const std::string getEdgeReference(const int& index) throw (XAO_Exception) { return m_edges.getReference(index); }
-        const std::string getFaceReference(const int& index) throw (XAO_Exception) { return m_faces.getReference(index); }
-        const std::string getSolidReference(const int& index) throw (XAO_Exception) { return m_solids.getReference(index); }
-        const std::string getElementReference(const XAO::Dimension& dim, const int& index) throw (XAO_Exception);
-
-        void setVertexReference(const int& index, const std::string& reference) throw (XAO_Exception);
-        void setEdgeReference(const int& index, const std::string& reference) throw (XAO_Exception);
-        void setFaceReference(const int& index, const std::string& reference) throw (XAO_Exception);
-        void setSolidReference(const int& index, const std::string& reference) throw (XAO_Exception);
-
-        void setVertex(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception);
-        void setEdge(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception);
-        void setFace(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception);
-        void setSolid(const int& index, const std::string& name, const std::string& reference) throw (XAO_Exception);
-
-        const int getVertexIndexByReference(const std::string& reference) { return m_vertices.getIndexByReference(reference); }
-        const int getEdgeIndexByReference(const std::string& reference) { return m_edges.getIndexByReference(reference); }
-        const int getFaceIndexByReference(const std::string& reference) { return m_faces.getIndexByReference(reference); }
-        const int getSolidIndexByReference(const std::string& reference) { return m_solids.getIndexByReference(reference); }
-        const int getElementIndexByReference(const XAO::Dimension& dim, const std::string& reference) throw (XAO_Exception);
-
-        GeometricElementList::iterator begin(const XAO::Dimension& dim) throw (XAO_Exception);
-        GeometricElementList::iterator end(const XAO::Dimension& dim) throw (XAO_Exception);
+        int countElements(XAO::Dimension dim) const ;
+        int countVertices() const { return m_vertices.getSize(); }
+        int countEdges() const { return m_edges.getSize(); }
+        int countFaces() const { return m_faces.getSize(); }
+        int countSolids() const { return m_solids.getSize(); }
+
+        void setCountVertices(int nb);
+        void setCountEdges(int nb);
+        void setCountFaces(int nb);
+        void setCountSolids(int nb);
+
+        const std::string getVertexName(int index)  { return m_vertices.getName(index); }
+        const std::string getEdgeName(int index)  { return m_edges.getName(index); }
+        const std::string getFaceName(int index)  { return m_faces.getName(index); }
+        const std::string getSolidName(int index)  { return m_solids.getName(index); }
+
+        void setVertexName(int index, const std::string& name)  { m_vertices.setName(index, name); }
+        void setEdgeName(int index, const std::string& name)  { m_edges.setName(index, name); }
+        void setFaceName(int index, const std::string& name)  { m_faces.setName(index, name); }
+        void setSolidName(int index, const std::string& name)  { m_solids.setName(index, name); }
+
+        bool hasVertexName(int index)  { return m_vertices.hasName(index); }
+        bool hasEdgeName(int index)  { return m_edges.hasName(index); }
+        bool hasFaceName(int index)  { return m_faces.hasName(index); }
+        bool hasSolidName(int index)  { return m_solids.hasName(index); }
+
+        const std::string getVertexReference(int index)  { return m_vertices.getReference(index); }
+        const std::string getEdgeReference(int index)  { return m_edges.getReference(index); }
+        const std::string getFaceReference(int index)  { return m_faces.getReference(index); }
+        const std::string getSolidReference(int index)  { return m_solids.getReference(index); }
+        const std::string getElementReference(XAO::Dimension dim, int index) ;
+
+        void setVertexReference(int index, const std::string& reference) ;
+        void setEdgeReference(int index, const std::string& reference) ;
+        void setFaceReference(int index, const std::string& reference) ;
+        void setSolidReference(int index, const std::string& reference) ;
+
+        void setVertex(int index, const std::string& name, const std::string& reference) ;
+        void setEdge(int index, const std::string& name, const std::string& reference) ;
+        void setFace(int index, const std::string& name, const std::string& reference) ;
+        void setSolid(int index, const std::string& name, const std::string& reference) ;
+
+        int getVertexIndexByReference(const std::string& reference) { return m_vertices.getIndexByReference(reference); }
+        int getEdgeIndexByReference(const std::string& reference) { return m_edges.getIndexByReference(reference); }
+        int getFaceIndexByReference(const std::string& reference) { return m_faces.getIndexByReference(reference); }
+        int getSolidIndexByReference(const std::string& reference) { return m_solids.getIndexByReference(reference); }
+        int getElementIndexByReference(XAO::Dimension dim, const std::string& reference) ;
+
+        GeometricElementList::iterator begin(XAO::Dimension dim) ;
+        GeometricElementList::iterator end(XAO::Dimension dim) ;
 
         /**
          * Verifies if the geometry is read only.
@@ -160,7 +159,7 @@ namespace XAO
         void setReadOnly() { m_readOnly = true; }
 
     protected:
-        void checkReadOnly() throw (XAO_Exception);
+        void checkReadOnly() ;
 
     protected:
         std::string m_name;
index 07e5485cd086f7c004c7a6184bfcd5e8c3dfbc44..00ea8ab67c80c0394a7d6bab252e2153fa64639c 100644 (file)
@@ -24,8 +24,7 @@
 using namespace XAO;
 
 
-Group::Group(const XAO::Dimension& dim, const int& nbElements, const std::string& name)
-throw (XAO_Exception)
+Group::Group(XAO::Dimension dim, int nbElements, const std::string& name)
 {
     if (dim == XAO::WHOLE)
         throw XAO_Exception("Dimension WHOLE is not valid for group.");
@@ -40,8 +39,7 @@ Group::~Group()
 {
 }
 
-void Group::checkIndex(const int& element)
-throw (XAO_Exception)
+void Group::checkIndex(int element)
 {
   if (element < (int)m_elements.size() && element >= 0)
         return;
@@ -50,12 +48,12 @@ throw (XAO_Exception)
                                      << m_elements.size()-1 << "]: " << element);
 }
 
-void Group::add(const int& value)
+void Group::add(int value)
 {
     m_elements.insert(value);
 }
 
-void Group::remove(const int& value)
+void Group::remove(int value)
 {
     m_elements.erase(value);
 }
index 1a8a01cfdfae87b6e52a88371725c638d2aa6999..2279df62dbba7a192103eaadb2309366a6dc43bd 100644 (file)
@@ -44,8 +44,7 @@ namespace XAO
          * @param nbElements the number of geometrical elements for the dimension in the geometry.
          * @param name the name of the group.
          */
-        Group(const XAO::Dimension& dim, const int& nbElements, const std::string& name = std::string(""))
-        throw (XAO_Exception);
+        Group(XAO::Dimension dim, int nbElements, const std::string& name = std::string(""));
 
         /**
          * Destructor.
@@ -73,7 +72,7 @@ namespace XAO
          * Gets the dimension of the group.
          * \return the dimension of the group.
          */
-        const XAO::Dimension getDimension()
+        XAO::Dimension getDimension()
         {
             return m_dimension;
         }
@@ -82,7 +81,7 @@ namespace XAO
          * Gets the numbers of elements in the geometry of the same type than the group.
          * \return the number of elements in the associated geometry.
          */
-        const int getNbElements()
+        int getNbElements()
         {
             return m_nbElements;
         }
@@ -91,7 +90,7 @@ namespace XAO
          * Gets the number of elements in the group.
          * \return the number of elements.
          */
-        const int count() const
+        int count() const
         {
             return m_elements.size();
         }
@@ -102,7 +101,7 @@ namespace XAO
          * \return the reference of the element.
          * \note use begin() and end() if you need to iterate.
          */
-        const int get(const int& index)
+        int get(int index)
         {
             checkIndex(index);
             std::set<int>::iterator it = m_elements.begin();
@@ -114,13 +113,13 @@ namespace XAO
          * Adds an element to the group.
          * \param value the index of the element to add.
          */
-        void add(const int& value);
+        void add(int value);
 
         /**
          * Removes an element from the group.
          * \param value the index of the element to remove.
          */
-        void remove(const int& value);
+        void remove(int value);
 
         /**
          * Gets an iterator on the first element in the group.
@@ -140,8 +139,7 @@ namespace XAO
          * @param element
          * @throw XAO_Exception if element is bigger than the number of elements.
          */
-        void checkIndex(const int& element)
-        throw (XAO_Exception);
+        void checkIndex(int element);
 
     private:
         /** The name of the group. */
index b7980a75efad42e328ababa797831596397b444d..05b9976b225edca351d29f934ceb706fbe0c598d 100644 (file)
 
 using namespace XAO;
 
-IntegerField::IntegerField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name)
+IntegerField::IntegerField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name)
     : Field(dimension, nbElements, nbComponents, name)
 {
 }
 
-Step* IntegerField::addNewStep(const int& step)
-throw (XAO_Exception)
+Step* IntegerField::addNewStep(int step)
+
 {
     return addStep(step, 0);
 }
 
-IntegerStep* IntegerField::addStep(const int& step)
-throw (XAO_Exception)
+IntegerStep* IntegerField::addStep(int step)
+
 {
     return addStep(step, 0);
 }
 
-IntegerStep* IntegerField::addStep(const int& step, const int& stamp)
-throw (XAO_Exception)
+IntegerStep* IntegerField::addStep(int step, int stamp)
+
 {
     if (hasStep(step))
         throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
@@ -52,8 +52,8 @@ throw (XAO_Exception)
     return bstep;
 }
 
-IntegerStep* IntegerField::getStep(const int& index)
-throw (XAO_Exception)
+IntegerStep* IntegerField::getStep(int index)
+
 {
     checkStepIndex(index);
     return (IntegerStep*)m_steps[index];
index 38fd961ac399e5474a23b656cfd9a425b82ac3da..fcf6f8630f2b8979947ddd5958f7ef0f936c6572 100644 (file)
@@ -49,18 +49,18 @@ namespace XAO
          * @param nbComponents the number of components.
          * @param name the name of the field.
          */
-        IntegerField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name);
+        IntegerField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name);
 
-        virtual const XAO::Type getType() { return XAO::INTEGER; }
+        virtual XAO::Type getType() { return XAO::INTEGER; }
 
-        virtual Step* addNewStep(const int& step) throw (XAO_Exception);
+        virtual Step* addNewStep(int step) ;
 
         /**
          * Adds a new step.
          * @param step the number of the step.
          * @return the newly created step.
          */
-        IntegerStep* addStep(const int& step) throw (XAO_Exception);
+        IntegerStep* addStep(int step) ;
 
         /**
          * Adds a new step.
@@ -68,14 +68,14 @@ namespace XAO
          * @param stamp the stamp of the step.
          * @return the newly created step.
          */
-        IntegerStep* addStep(const int& step, const int& stamp) throw (XAO_Exception);
+        IntegerStep* addStep(int step, int stamp) ;
 
         /**
          * Gets the step of given index.
          * @param index the index of the step.
          * @return the step for the given index.
          */
-        IntegerStep* getStep(const int& index) throw (XAO_Exception);
+        IntegerStep* getStep(int index) ;
     };
 }
 
index dbd2f5ef049d1dc2801a99cfc5aff19353e79f8a..0159c0f874d27316d91f38ec8a5f9d958e09d19f 100644 (file)
@@ -23,7 +23,7 @@
 
 using namespace XAO;
 
-IntegerStep::IntegerStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents)
+IntegerStep::IntegerStep(int step, int stamp, int nbElements, int nbComponents)
 {
     m_nbElements = nbElements;
     m_nbComponents = nbComponents;
@@ -56,8 +56,8 @@ std::vector<int> IntegerStep::getValues()
     return result;
 }
 
-std::vector<int> IntegerStep::getElement(const int& element)
-throw (XAO_Exception)
+std::vector<int> IntegerStep::getElement(int element)
+
 {
     checkElementIndex(element);
 
@@ -65,8 +65,8 @@ throw (XAO_Exception)
     return result;
 }
 
-std::vector<int> IntegerStep::getComponent(const int& component)
-throw (XAO_Exception)
+std::vector<int> IntegerStep::getComponent(int component)
+
 {
     checkComponentIndex(component);
 
@@ -83,8 +83,8 @@ throw (XAO_Exception)
     return result;
 }
 
-const int IntegerStep::getValue(const int& element, const int& component)
-throw (XAO_Exception)
+int IntegerStep::getValue(int element, int component)
+
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -92,14 +92,14 @@ throw (XAO_Exception)
     return m_values[element][component];
 }
 
-const std::string IntegerStep::getStringValue(const int& element, const int& component)
-throw (XAO_Exception)
+const std::string IntegerStep::getStringValue(int element, int component)
+
 {
     return XaoUtils::intToString(getValue(element, component));
 }
 
 void IntegerStep::setValues(const std::vector<int>& values)
-throw (XAO_Exception)
+
 {
     checkNbValues(values.size());
 
@@ -112,8 +112,8 @@ throw (XAO_Exception)
     }
 }
 
-void IntegerStep::setElement(const int& element, const std::vector<int>& elements)
-throw (XAO_Exception)
+void IntegerStep::setElement(int element, const std::vector<int>& elements)
+
 {
     checkElementIndex(element);
     checkNbComponents(elements.size());
@@ -122,8 +122,8 @@ throw (XAO_Exception)
         m_values[element][i] = elements[i];
 }
 
-void IntegerStep::setComponent(const int& component, const std::vector<int>& components)
-throw (XAO_Exception)
+void IntegerStep::setComponent(int component, const std::vector<int>& components)
+
 {
     checkElementIndex(component);
     checkNbElements(components.size());
@@ -132,8 +132,8 @@ throw (XAO_Exception)
         m_values[i][component] = components[i];
 }
 
-void IntegerStep::setValue(const int& element, const int& component, const int& value)
-throw (XAO_Exception)
+void IntegerStep::setValue(int element, int component, int value)
+
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -141,8 +141,8 @@ throw (XAO_Exception)
     m_values[element][component] = value;
 }
 
-void IntegerStep::setStringValue(const int& element, const int& component, const std::string& value)
-throw (XAO_Exception)
+void IntegerStep::setStringValue(int element, int component, const std::string& value)
+
 {
     setValue(element, component, XaoUtils::stringToInt(value));
 }
index 7b4ca7da7d498ac03b5786beb8380af8359233bc..a3df1ca197b34f956a3d58ff09de438fb65171de 100644 (file)
@@ -49,9 +49,9 @@ namespace XAO
          * @param nbElements the number elements of the geometry.
          * @param nbComponents the number of components of the field.
          */
-        IntegerStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents);
+        IntegerStep(int step, int stamp, int nbElements, int nbComponents);
 
-        virtual const XAO::Type getType() { return XAO::INTEGER; }
+        virtual XAO::Type getType() { return XAO::INTEGER; }
 
         /**
          * Gets all the values of the step as a list.
@@ -64,14 +64,14 @@ namespace XAO
          * @param element the index of the element.
          * @return a vector containing all the values for the given element.
          */
-        std::vector<int> getElement(const int& element) throw (XAO_Exception);
+        std::vector<int> getElement(int element) ;
 
         /**
          * Gets all the values for a given component.
          * @param component the index of the component.
          * @return a vector containing all the values for the given component.
          */
-        std::vector<int> getComponent(const int& component) throw (XAO_Exception);
+        std::vector<int> getComponent(int component) ;
 
         /**
          * Gets the value for an element and a component.
@@ -79,27 +79,27 @@ namespace XAO
          * @param component the index of the component.
          * @return the value for the given element and component.
          */
-        const int getValue(const int& element, const int& component) throw (XAO_Exception);
+        int getValue(int element, int component) ;
 
         /**
          * Sets all the values from a list.
          * @param values the list of values to set.
          */
-        void setValues(const std::vector<int>& values) throw (XAO_Exception);
+        void setValues(const std::vector<int>& values) ;
 
         /**
          * Sets the values for an element.
          * @param element the index of the element to set.
          * @param elements the values to set.
          */
-        void setElement(const int& element, const std::vector<int>& elements) throw (XAO_Exception);
+        void setElement(int element, const std::vector<int>& elements) ;
 
         /**
          * Sets the values for a component.
          * @param component the index of the component to set.
          * @param components the values to set.
          */
-        void setComponent(const int& component, const std::vector<int>& components) throw (XAO_Exception);
+        void setComponent(int component, const std::vector<int>& components) ;
 
         /**
          * Sets the value for an element and a component.
@@ -107,10 +107,10 @@ namespace XAO
          * @param component the index of the component.
          * @param value the value.
          */
-        void setValue(const int& element, const int& component, const int& value) throw (XAO_Exception);
+        void setValue(int element, int component, int value) ;
 
-        virtual const std::string getStringValue(const int& element, const int& component) throw (XAO_Exception);
-        virtual void setStringValue(const int& element, const int& component, const std::string& value)  throw (XAO_Exception);
+        virtual const std::string getStringValue(int element, int component) ;
+        virtual void setStringValue(int element, int component, const std::string& value)  ;
 
     private:
         std::vector< std::vector<int> > m_values;
index fb29f9ab96504419867f7c1bf288d54b25314b39..4214a9d78617f608d757e708c25a4c3555d3516d 100644 (file)
@@ -28,8 +28,7 @@
 
 using namespace XAO;
 
-void Step::checkElementIndex(const int& element)
-throw (XAO_Exception)
+void Step::checkElementIndex(int element)
 {
     if (element < m_nbElements && element >= 0)
         return;
@@ -38,8 +37,7 @@ throw (XAO_Exception)
                                      << m_nbElements-1 << "]: " << element);
 }
 
-void Step::checkComponentIndex(const int& component)
-throw (XAO_Exception)
+void Step::checkComponentIndex(int component)
 {
     if (component < m_nbComponents && component >= 0)
         return;
@@ -48,8 +46,7 @@ throw (XAO_Exception)
                                      << m_nbComponents-1 << "]: " << component);
 }
 
-void Step::checkNbElements(const int& nbElements)
-throw (XAO_Exception)
+void Step::checkNbElements(int nbElements)
 {
     if (nbElements == m_nbElements)
         return;
@@ -58,8 +55,7 @@ throw (XAO_Exception)
                                         << ", expected " << m_nbElements);
 }
 
-void Step::checkNbComponents(const int& nbComponents)
-throw (XAO_Exception)
+void Step::checkNbComponents(int nbComponents)
 {
     if (nbComponents == m_nbComponents)
         return;
@@ -68,8 +64,7 @@ throw (XAO_Exception)
                                         << ", expected " << m_nbComponents);
 }
 
-void Step::checkNbValues(const int& nbValues)
-throw (XAO_Exception)
+void Step::checkNbValues(int nbValues)
 {
     if (nbValues == m_nbElements * m_nbComponents)
         return;
index 66bdf02976799528a1f30f48d7663e792b1e23b2..ef7aa3ae27540bead3d231430e30a6e133e27327 100644 (file)
@@ -51,49 +51,49 @@ namespace XAO
          * Gets the type of the step.
          * @return
          */
-        virtual const XAO::Type getType() = 0;
+        virtual XAO::Type getType() = 0;
 
         /**
          * Gets the step index.
          * @return the index of the step.
          */
-        const int getStep() { return m_step; }
+        int getStep() { return m_step; }
 
         /**
          * Sets the number of the step.
          * @param step the index to set.
          */
-        void setStep(const int& step) { m_step = step; }
+        void setStep(int step) { m_step = step; }
 
         /**
          * Gets the stamp of the index.
          * @return the stamp of the index.
          */
-        const int getStamp() { return m_stamp; }
+        int getStamp() { return m_stamp; }
 
         /**
          * Sets the stamp of the index.
          * @param stamp the stamp to set.
          */
-        void setStamp(const int& stamp) { m_stamp = stamp; }
+        void setStamp(int stamp) { m_stamp = stamp; }
 
         /**
          * Gets the number of components of the step.
          * @return the number of components.
          */
-        const int countComponents() { return m_nbComponents; }
+        int countComponents() { return m_nbComponents; }
 
         /**
          * Gets the number of elements for the step.
          * @return the number of elements.
          */
-        const int countElements() { return m_nbElements; }
+        int countElements() { return m_nbElements; }
 
         /**
          * Gets the number of values for the step.
          * @return the number of values.
          */
-        const int countValues() { return m_nbElements * m_nbComponents; }
+        int countValues() { return m_nbElements * m_nbComponents; }
 
         /**
          * Gets a value as a string.
@@ -101,7 +101,7 @@ namespace XAO
          * @param component the index of the component.
          * @return the value as a string.
          */
-        virtual const std::string getStringValue(const int& element, const int& component) = 0;
+        virtual const std::string getStringValue(int element, int component) = 0;
 
         /**
          * Sets a value as a string
@@ -110,37 +110,37 @@ namespace XAO
          * @param value the string value.
          * @throw XAO_Exception if the value is not valid.
          */
-        virtual void setStringValue(const int& element, const int& component, const std::string& value) = 0;
+        virtual void setStringValue(int element, int component, const std::string& value) = 0;
 
     protected:
         /**
          * Checks that given element index is in the range of element indexes.
          * @param element the index to check.
          */
-        void checkElementIndex(const int& element) throw (XAO_Exception);
+        void checkElementIndex(int element);
         /**
          * Checks that given component index is in the range of component indexes.
          * @param component the index to check.
          */
-        void checkComponentIndex(const int& component)throw (XAO_Exception);
+        void checkComponentIndex(int component);
 
         /**
          * Checks that the given number of elements is correct.
          * @param nbElements the number of elements to check.
          */
-        void checkNbElements(const int& nbElements)throw (XAO_Exception);
+        void checkNbElements(int nbElements);
 
         /**
          * Checks that the given number of components is correct.
          * @param nbComponents the number of components to check.
          */
-        void checkNbComponents(const int& nbComponents)throw (XAO_Exception);
+        void checkNbComponents(int nbComponents);
 
         /**
          * checks that the given number of values is correct.
          * @param nbValues the number of values to check.
          */
-        void checkNbValues(const int& nbValues)throw (XAO_Exception);
+        void checkNbValues(int nbValues);
 
     protected:
         /** the index of the step. */
index 63bd027dabe86921ec40f755d1a87bb59dbd8460..33eb6da7a10eebb0be80ff479f9e4556e041a480 100644 (file)
 
 using namespace XAO;
 
-StringField::StringField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name)
+StringField::StringField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name)
     : Field(dimension, nbElements, nbComponents, name)
 {
 }
 
-Step* StringField::addNewStep(const int& step)
-throw (XAO_Exception)
+Step* StringField::addNewStep(int step)
+
 {
     return addStep(step, 0);
 }
 
-StringStep* StringField::addStep(const int& step)
-throw (XAO_Exception)
+StringStep* StringField::addStep(int step)
+
 {
     return addStep(step, 0);
 }
 
-StringStep* StringField::addStep(const int& step, const int& stamp)
-throw (XAO_Exception)
+StringStep* StringField::addStep(int step, int stamp)
+
 {
     if (hasStep(step))
         throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
@@ -52,8 +52,8 @@ throw (XAO_Exception)
     return bstep;
 }
 
-StringStep* StringField::getStep(const int& index)
-throw (XAO_Exception)
+StringStep* StringField::getStep(int index)
+
 {
     checkStepIndex(index);
     return (StringStep*)m_steps[index];
index 8788a12742497db2c94fbf1ad0b7b865418b1979..b64baf57c222cd2c9b193ea2534bb8077da7b7b3 100644 (file)
@@ -48,18 +48,18 @@ namespace XAO
          * @param nbComponents the number of components.
          * @param name the name of the field.
          */
-        StringField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name);
+        StringField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name);
 
-        virtual const XAO::Type getType() { return XAO::STRING; }
+        virtual XAO::Type getType() { return XAO::STRING; }
 
-        virtual Step* addNewStep(const int& step) throw (XAO_Exception);
+        virtual Step* addNewStep(int step) ;
 
         /**
          * Adds a new step.
          * @param step the number of the step.
          * @return the newly created step.
          */
-        StringStep* addStep(const int& step) throw (XAO_Exception);
+        StringStep* addStep(int step) ;
 
         /**
          * Adds a new step.
@@ -67,14 +67,14 @@ namespace XAO
          * @param stamp the stamp of the step.
          * @return the newly created step.
          */
-        StringStep* addStep(const int& step, const int& stamp) throw (XAO_Exception);
+        StringStep* addStep(int step, int stamp) ;
 
         /**
          * Gets the step of given index.
          * @param index the index of the step.
          * @return the step for the given index.
          */
-        StringStep* getStep(const int& index) throw (XAO_Exception);
+        StringStep* getStep(int index) ;
     };
 }
 
index 7c1d40e98f811aa8c9820cdf9b6fd5f102c0bce7..18e28e79bae569aed61b287847795bf21e4ae435 100644 (file)
@@ -22,7 +22,7 @@
 
 using namespace XAO;
 
-StringStep::StringStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents)
+StringStep::StringStep(int step, int stamp, int nbElements, int nbComponents)
 {
     m_nbElements = nbElements;
     m_nbComponents = nbComponents;
@@ -55,8 +55,8 @@ std::vector<std::string> StringStep::getValues()
     return result;
 }
 
-std::vector<std::string> StringStep::getElement(const int& element)
-throw (XAO_Exception)
+std::vector<std::string> StringStep::getElement(int element)
+
 {
     checkElementIndex(element);
 
@@ -64,8 +64,8 @@ throw (XAO_Exception)
     return result;
 }
 
-std::vector<std::string> StringStep::getComponent(const int& component)
-throw (XAO_Exception)
+std::vector<std::string> StringStep::getComponent(int component)
+
 {
     checkComponentIndex(component);
 
@@ -82,8 +82,8 @@ throw (XAO_Exception)
     return result;
 }
 
-const std::string StringStep::getValue(const int& element, const int& component)
-throw (XAO_Exception)
+const std::string StringStep::getValue(int element, int component)
+
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -91,14 +91,14 @@ throw (XAO_Exception)
     return m_values[element][component];
 }
 
-const std::string StringStep::getStringValue(const int& element, const int& component)
-throw (XAO_Exception)
+const std::string StringStep::getStringValue(int element, int component)
+
 {
     return getValue(element, component);
 }
 
 void StringStep::setValues(const std::vector<std::string>& values)
-throw (XAO_Exception)
+
 {
     checkNbValues(values.size());
 
@@ -111,8 +111,8 @@ throw (XAO_Exception)
     }
 }
 
-void StringStep::setElement(const int& element, const std::vector<std::string>& elements)
-throw (XAO_Exception)
+void StringStep::setElement(int element, const std::vector<std::string>& elements)
+
 {
     checkElementIndex(element);
     checkNbComponents(elements.size());
@@ -121,8 +121,8 @@ throw (XAO_Exception)
         m_values[element][i] = elements[i];
 }
 
-void StringStep::setComponent(const int& component, const std::vector<std::string>& components)
-throw (XAO_Exception)
+void StringStep::setComponent(int component, const std::vector<std::string>& components)
+
 {
     checkElementIndex(component);
     checkNbElements(components.size());
@@ -131,8 +131,8 @@ throw (XAO_Exception)
         m_values[i][component] = components[i];
 }
 
-void StringStep::setValue(const int& element, const int& component, const std::string& value)
-throw (XAO_Exception)
+void StringStep::setValue(int element, int component, const std::string& value)
+
 {
     checkElementIndex(element);
     checkComponentIndex(component);
@@ -140,8 +140,8 @@ throw (XAO_Exception)
     m_values[element][component] = value;
 }
 
-void StringStep::setStringValue(const int& element, const int& component, const std::string& value)
-throw (XAO_Exception)
+void StringStep::setStringValue(int element, int component, const std::string& value)
+
 {
     setValue(element, component, value);
 }
index c26fd942d345fbcd566e915469b4e691008b42dd..c03775cf8bd09329616b6324d84fc4e720bb3ed2 100644 (file)
@@ -49,9 +49,9 @@ namespace XAO
          * @param nbElements the number elements of the geometry.
          * @param nbComponents the number of components of the field.
          */
-        StringStep(const int& step, const int& stamp, const int& nbElements, const int& nbComponents);
+        StringStep(int step, int stamp, int nbElements, int nbComponents);
 
-        virtual const XAO::Type getType() { return XAO::STRING; }
+        virtual XAO::Type getType() { return XAO::STRING; }
 
         /**
          * Gets all the values of the step as a list.
@@ -64,14 +64,14 @@ namespace XAO
          * @param element the index of the element.
          * @return a vector containing all the values for the given element.
          */
-        std::vector<std::string> getElement(const int& element) throw (XAO_Exception);
+        std::vector<std::string> getElement(int element) ;
 
         /**
          * Gets all the values for a given component.
          * @param component the index of the component.
          * @return a vector containing all the values for the given component.
          */
-        std::vector<std::string> getComponent(const int& component) throw (XAO_Exception);
+        std::vector<std::string> getComponent(int component) ;
 
         /**
          * Gets the value for an element and a component.
@@ -79,27 +79,27 @@ namespace XAO
          * @param component the index of the component.
          * @return the value for the given element and component.
          */
-        const std::string getValue(const int& element, const int& component) throw (XAO_Exception);
+        const std::string getValue(int element, int component) ;
 
         /**
          * Sets all the values from a list.
          * @param values the list of values to set.
          */
-        void setValues(const std::vector<std::string>& values) throw (XAO_Exception);
+        void setValues(const std::vector<std::string>& values) ;
 
         /**
          * Sets the values for an element.
          * @param element the index of the element to set.
          * @param elements the values to set.
          */
-        void setElement(const int& element, const std::vector<std::string>& elements) throw (XAO_Exception);
+        void setElement(int element, const std::vector<std::string>& elements) ;
 
         /**
          * Sets the values for a component.
          * @param component the index of the component to set.
          * @param components the values to set.
          */
-        void setComponent(const int& component, const std::vector<std::string>& components) throw (XAO_Exception);
+        void setComponent(int component, const std::vector<std::string>& components) ;
 
         /**
          * Sets the value for an element and a component.
@@ -107,10 +107,10 @@ namespace XAO
          * @param component the index of the component.
          * @param value the value.
          */
-        void setValue(const int& element, const int& component, const std::string& value) throw (XAO_Exception);
+        void setValue(int element, int component, const std::string& value) ;
 
-        virtual const std::string getStringValue(const int& element, const int& component) throw (XAO_Exception);
-        virtual void setStringValue(const int& element, const int& component, const std::string& value) throw (XAO_Exception);
+        virtual const std::string getStringValue(int element, int component) ;
+        virtual void setStringValue(int element, int component, const std::string& value) ;
 
     private:
         std::vector< std::vector<std::string> > m_values;
index c9bdf0e6a6fe28be62755b5729ae4fd7aee4a0d1..c5e2645e41001d2fe85648316d3ac54211cc94fa 100644 (file)
@@ -69,13 +69,13 @@ Xao::~Xao()
     }
 }
 
-const int Xao::countGroups() const
+int Xao::countGroups() const
 {
     return m_groups.size();
 }
 
-Group* Xao::getGroup(const int& index)
-throw (XAO_Exception)
+Group* Xao::getGroup(int index)
+
 {
     checkGroupIndex(index);
 
@@ -89,8 +89,8 @@ throw (XAO_Exception)
     return NULL;
 }
 
-Group* Xao::addGroup(const XAO::Dimension& dim, const std::string& name)
-throw (XAO_Exception)
+Group* Xao::addGroup(XAO::Dimension dim, const std::string& name)
+
 {
     checkGeometry();
     checkGroupDimension(dim);
@@ -115,19 +115,19 @@ bool Xao::removeGroup(Group* group)
     return res;
 }
 
-const int Xao::countFields() const
+int Xao::countFields() const
 {
     return m_fields.size();
 }
 
-const XAO::Type Xao::getFieldType(const int& index)
-throw (XAO_Exception)
+XAO::Type Xao::getFieldType(int index)
+
 {
     return getField(index)->getType();
 }
 
-Field* Xao::getField(const int& index)
-throw (XAO_Exception)
+Field* Xao::getField(int index)
+
 {
     checkFieldIndex(index);
 
@@ -141,8 +141,8 @@ throw (XAO_Exception)
     throw XAO_Exception("Field not found.");
 }
 
-BooleanField* Xao::getBooleanField(const int& index)
-throw (XAO_Exception)
+BooleanField* Xao::getBooleanField(int index)
+
 {
     Field* field = getField(index);
     if (field->getType() != XAO::BOOLEAN)
@@ -150,8 +150,8 @@ throw (XAO_Exception)
     return (BooleanField*)field;
 }
 
-DoubleField* Xao::getDoubleField(const int& index)
-throw (XAO_Exception)
+DoubleField* Xao::getDoubleField(int index)
+
 {
     Field* field = getField(index);
     if (field->getType() != XAO::DOUBLE)
@@ -159,8 +159,8 @@ throw (XAO_Exception)
     return (DoubleField*)field;
 }
 
-IntegerField* Xao::getIntegerField(const int& index)
-throw (XAO_Exception)
+IntegerField* Xao::getIntegerField(int index)
+
 {
     Field* field = getField(index);
     if (field->getType() != XAO::INTEGER)
@@ -168,8 +168,8 @@ throw (XAO_Exception)
     return (IntegerField*)field;
 }
 
-StringField* Xao::getStringField(const int& index)
-throw (XAO_Exception)
+StringField* Xao::getStringField(int index)
+
 {
     Field* field = getField(index);
     if (field->getType() != XAO::STRING)
@@ -177,8 +177,8 @@ throw (XAO_Exception)
     return (StringField*)field;
 }
 
-Field* Xao::addField(const XAO::Type& type, const XAO::Dimension& dim, const int& nbComponents, const std::string& name)
-throw (XAO_Exception)
+Field* Xao::addField(XAO::Type type, XAO::Dimension dim, int nbComponents, const std::string& name)
+
 {
     checkGeometry();
     int nbElts = m_geometry->countElements(dim);
@@ -187,8 +187,8 @@ throw (XAO_Exception)
     return field;
 }
 
-IntegerField* Xao::addIntegerField(const XAO::Dimension& dim, const int& nbComponents, const std::string& name)
-throw (XAO_Exception)
+IntegerField* Xao::addIntegerField(XAO::Dimension dim, int nbComponents, const std::string& name)
+
 {
     checkGeometry();
     int nbElts = m_geometry->countElements(dim);
@@ -196,8 +196,8 @@ throw (XAO_Exception)
     m_fields.push_back(field);
     return field;
 }
-BooleanField* Xao::addBooleanField(const XAO::Dimension& dim, const int& nbComponents, const std::string& name)
-throw (XAO_Exception)
+BooleanField* Xao::addBooleanField(XAO::Dimension dim, int nbComponents, const std::string& name)
+
 {
     checkGeometry();
     int nbElts = m_geometry->countElements(dim);
@@ -205,8 +205,8 @@ throw (XAO_Exception)
     m_fields.push_back(field);
     return field;
 }
-DoubleField* Xao::addDoubleField(const XAO::Dimension& dim, const int& nbComponents, const std::string& name)
-throw (XAO_Exception)
+DoubleField* Xao::addDoubleField(XAO::Dimension dim, int nbComponents, const std::string& name)
+
 {
     checkGeometry();
     int nbElts = m_geometry->countElements(dim);
@@ -214,8 +214,8 @@ throw (XAO_Exception)
     m_fields.push_back(field);
     return field;
 }
-StringField* Xao::addStringField(const XAO::Dimension& dim, const int& nbComponents, const std::string& name)
-throw (XAO_Exception)
+StringField* Xao::addStringField(XAO::Dimension dim, int nbComponents, const std::string& name)
+
 {
     checkGeometry();
     int nbElts = m_geometry->countElements(dim);
@@ -241,7 +241,7 @@ bool Xao::removeField(Field* field)
     return res;
 }
 
-const bool Xao::exportXAO(const std::string& fileName, const std::string& shapeFileName)
+bool Xao::exportXAO(const std::string& fileName, const std::string& shapeFileName)
 {
     return XaoExporter::saveToFile(this, fileName, shapeFileName);
 }
@@ -251,25 +251,23 @@ const std::string Xao::getXML()
     return XaoExporter::saveToXml(this);
 }
 
-const bool Xao::importXAO(const std::string& fileName)
+bool Xao::importXAO(const std::string& fileName)
 {
     return XaoExporter::readFromFile(fileName, this);
 }
 
-const bool Xao::setXML(const std::string& xml)
+bool Xao::setXML(const std::string& xml)
 {
     return XaoExporter::setXML(xml, this);
 }
 
 void Xao::checkGeometry() const
-throw(XAO_Exception)
 {
     if (m_geometry == NULL)
         throw XAO_Exception("Geometry is null");
 }
 
-void Xao::checkGroupIndex(const int& index) const
-throw(XAO_Exception)
+void Xao::checkGroupIndex(int index) const
 {
     if (index >= 0 && index < countGroups())
         return;
@@ -278,8 +276,7 @@ throw(XAO_Exception)
                                      << countGroups()-1 << "]: " << index);
 }
 
-void Xao::checkFieldIndex(const int& index) const
-throw(XAO_Exception)
+void Xao::checkFieldIndex(int index) const
 {
     if (index >= 0 && index < countFields())
         return;
@@ -288,8 +285,7 @@ throw(XAO_Exception)
                                      << countFields()-1 << "]: " << index);
 }
 
-void Xao::checkGroupDimension(const XAO::Dimension& dim) const
-throw(XAO_Exception)
+void Xao::checkGroupDimension(XAO::Dimension dim) const
 {
     if (dim == XAO::WHOLE)
         throw XAO_Exception(MsgBuilder() << "Invalid dimension for group: " << dim);
index 8a005cb66592bb8c7b236ef6e16daa1f52227729..d5fe9c49acbe84e61b9d574c59bbc9cd8c29c9de 100644 (file)
@@ -115,7 +115,7 @@ namespace XAO
          * Sets the geometry.
          * \param geometry the geometry to set.
          */
-        void setGeometry(Geometry* geometry) throw (XAO_Exception)
+        void setGeometry(Geometry* geometry) 
         {
             if (m_geometry != NULL)
                 throw XAO_Exception("Geometry already set.");
@@ -131,20 +131,20 @@ namespace XAO
          * Gets the number of groups.
          * \return the number of groups.
          */
-        const int countGroups() const;
+        int countGroups() const;
         /**
          * Gets a group.
          * \param index the index of the wanted group.
          * \return the group.
          */
-        Group* getGroup(const int& index) throw (XAO_Exception);
+        Group* getGroup(int index) ;
         /**
          * Adds a group.
          * \param dim the dimension of the group.
          * \param name the name of the group.
          * \return the created group.
          */
-        Group* addGroup(const XAO::Dimension& dim, const std::string& name = std::string("")) throw (XAO_Exception);
+        Group* addGroup(XAO::Dimension dim, const std::string& name = std::string("")) ;
         /**
          * Removes a group.
          * \param group the group to remove.
@@ -160,26 +160,26 @@ namespace XAO
          * Gets the number of fields.
          * \return the number of fields.
          */
-        const int countFields() const;
+        int countFields() const;
 
         /**
          * Gets the type of a field.
          * \param index the index of the wanted field.
          * \return the type of the field.
          */
-        const XAO::Type getFieldType(const int& index) throw (XAO_Exception);
+        XAO::Type getFieldType(int index) ;
 
         /**
          * Gets a field.
          * \param index the index of the wanted field.
          * \return the field.
          */
-        Field* getField(const int& index) throw (XAO_Exception);
+        Field* getField(int index) ;
 
-        BooleanField* getBooleanField(const int& index) throw (XAO_Exception);
-        DoubleField* getDoubleField(const int& index) throw (XAO_Exception);
-        IntegerField* getIntegerField(const int& index) throw (XAO_Exception);
-        StringField* getStringField(const int& index) throw (XAO_Exception);
+        BooleanField* getBooleanField(int index) ;
+        DoubleField* getDoubleField(int index) ;
+        IntegerField* getIntegerField(int index) ;
+        StringField* getStringField(int index) ;
 
         /**
          * Adds a field.
@@ -189,18 +189,18 @@ namespace XAO
          * \param name the name of the field.
          * \return the created field.
          */
-        Field* addField(const XAO::Type& type, const XAO::Dimension& dim, const int& nbComponents,
+        Field* addField(XAO::Type type, XAO::Dimension dim, int nbComponents,
                 const std::string& name = std::string(""))
-        throw (XAO_Exception);
+        ;
 
-        BooleanField* addBooleanField(const XAO::Dimension& dim, const int& nbComponents,
-                const std::string& name = std::string("")) throw (XAO_Exception);
-        IntegerField* addIntegerField(const XAO::Dimension& dim, const int& nbComponents,
-                const std::string& name = std::string("")) throw (XAO_Exception);
-        DoubleField* addDoubleField(const XAO::Dimension& dim, const int& nbComponents,
-                const std::string& name = std::string("")) throw (XAO_Exception);
-        StringField* addStringField(const XAO::Dimension& dim, const int& nbComponents,
-                const std::string& name = std::string("")) throw (XAO_Exception);
+        BooleanField* addBooleanField(XAO::Dimension dim, int nbComponents,
+                const std::string& name = std::string("")) ;
+        IntegerField* addIntegerField(XAO::Dimension dim, int nbComponents,
+                const std::string& name = std::string("")) ;
+        DoubleField* addDoubleField(XAO::Dimension dim, int nbComponents,
+                const std::string& name = std::string("")) ;
+        StringField* addStringField(XAO::Dimension dim, int nbComponents,
+                const std::string& name = std::string("")) ;
 
         /**
          * Removes a field.
@@ -218,7 +218,7 @@ namespace XAO
          * \param shapeFileName if not empty, export the shape to this external file.
          * \return true is the export is successful.
          */
-        const bool exportXAO(const std::string& fileName, const std::string& shapeFileName);
+        bool exportXAO(const std::string& fileName, const std::string& shapeFileName);
         /**
          * Gets the XML corresponding to this XAO.
          * \return the XML as a string.
@@ -230,19 +230,19 @@ namespace XAO
          * \param fileName the name of the file to import.
          * \return true if the import is successful.
          */
-        const bool importXAO(const std::string& fileName);
+        bool importXAO(const std::string& fileName);
         /**
          * Sets an XML describing an XAO format to this object.
          * \param xml the XML to set.
          * \return true if the import is successful.
          */
-        const bool setXML(const std::string& xml);
+        bool setXML(const std::string& xml);
 
     private:
-        void checkGeometry() const throw (XAO_Exception);
-        void checkGroupIndex(const int& index) const throw (XAO_Exception);
-        void checkFieldIndex(const int& index) const throw (XAO_Exception);
-        void checkGroupDimension(const XAO::Dimension& dim) const throw (XAO_Exception);
+        void checkGeometry() const ;
+        void checkGroupIndex(int index) const ;
+        void checkFieldIndex(int index) const ;
+        void checkGroupDimension(XAO::Dimension dim) const ;
 
     private:
         /** The author of the file. */
index 5f0230681e9322e7761770514946527923db9fb9..b371b47fc6d0ab314644408ea31431b00374d91b 100644 (file)
@@ -116,14 +116,14 @@ namespace {
     void parseStepElementNode(xmlNodePtr eltNode, Step* step);
 
     std::string readStringProp(xmlNodePtr node, const xmlChar* attribute,
-                               const bool& required, const std::string& defaultValue,
+                               bool required, const std::string& defaultValue,
                                const std::string& exception = std::string(""));
     int readIntegerProp(xmlNodePtr node, const xmlChar* attribute,
-                        const bool& required, const int& defaultValue,
+                        bool required, int defaultValue,
                         const std::string& exception = std::string(""));
 
     std::string readStringProp(xmlNodePtr node, const xmlChar* attribute,
-                               const bool& required, const std::string& defaultValue,
+                               bool required, const std::string& defaultValue,
                                const std::string& exception /*= std::string() */)
   {
     xmlChar* strAttr = xmlGetProp(node, attribute);
@@ -147,7 +147,7 @@ namespace {
   }
 
   int readIntegerProp(xmlNodePtr node, const xmlChar* attribute,
-                      const bool& required, const int& defaultValue,
+                      bool required, int defaultValue,
                       const std::string& exception /*= std::string() */)
   {
     xmlChar* strAttr = xmlGetProp(node, attribute);
@@ -298,7 +298,7 @@ namespace {
     }
   }
 
-  void exportStep(Step* step, Field* field, xmlNodePtr nodeSteps)
+  void exportStep(Step* step, Field* /*field*/, xmlNodePtr nodeSteps)
   {
     xmlNodePtr nodeStep = xmlNewChild(nodeSteps, 0, C_TAG_STEP, 0);
     xmlNewProp(nodeStep, C_ATTR_STEP_NUMBER, BAD_CAST XaoUtils::intToString(step->getStep()).c_str());
@@ -378,7 +378,7 @@ namespace {
     xaoObject->setGeometry(geometry);
   }
 
-  void parseShapeNode(xmlDocPtr doc, xmlNodePtr shapeNode, Geometry* geometry)
+  void parseShapeNode(xmlDocPtr /*doc*/, xmlNodePtr shapeNode, Geometry* geometry)
   {
     if (geometry->getFormat() == XAO::BREP)
     {
@@ -638,8 +638,8 @@ namespace {
   }
 }
 
-const bool XaoExporter::saveToFile(Xao* xaoObject, const std::string& fileName, const std::string& shapeFileName)
-throw (XAO_Exception)
+bool XaoExporter::saveToFile(Xao* xaoObject, const std::string& fileName, const std::string& shapeFileName)
+
 {
     xmlDocPtr doc = exportXMLDoc(xaoObject, shapeFileName);
     xmlSaveFormatFileEnc(fileName.c_str(), doc, "UTF-8", 1); // format = 1 for node indentation
@@ -649,7 +649,7 @@ throw (XAO_Exception)
 }
 
 const std::string XaoExporter::saveToXml(Xao* xaoObject)
-throw (XAO_Exception)
+
 {
     xmlDocPtr doc = exportXMLDoc(xaoObject, "");
 
@@ -662,8 +662,8 @@ throw (XAO_Exception)
     return (char*)xmlbuff;
 }
 
-const bool XaoExporter::readFromFile(const std::string& fileName, Xao* xaoObject)
-throw (XAO_Exception)
+bool XaoExporter::readFromFile(const std::string& fileName, Xao* xaoObject)
+
 {
     // parse the file and get the DOM
     int options = XML_PARSE_HUGE | XML_PARSE_NOCDATA;
@@ -677,8 +677,8 @@ throw (XAO_Exception)
     return true;
 }
 
-const bool XaoExporter::setXML(const std::string& xml, Xao* xaoObject)
-throw (XAO_Exception)
+bool XaoExporter::setXML(const std::string& xml, Xao* xaoObject)
+
 {
     int options = XML_PARSE_HUGE | XML_PARSE_NOCDATA;
     xmlDocPtr doc = xmlReadDoc(BAD_CAST xml.c_str(), "", NULL, options);
index 6367bebe2907503e212e8eeaa4b0b036b9a86506..5ab64cd6b7f83171e76f5346836c59f0bd55befe 100644 (file)
@@ -47,8 +47,8 @@ namespace XAO
          * @param shapeFileName if not empty save the shape in an this external file.
          * @return true if the export was successful, false otherwise.
          */
-        static const bool saveToFile(Xao* xaoObject, const std::string& fileName, const std::string& shapeFileName)
-        throw (XAO_Exception);
+        static bool saveToFile(Xao* xaoObject, const std::string& fileName, const std::string& shapeFileName)
+        ;
 
         /**
          * Saves the XAO object to a XML string.
@@ -56,7 +56,7 @@ namespace XAO
          * @return the XML string.
          */
         static const std::string saveToXml(Xao* xaoObject)
-        throw (XAO_Exception);
+        ;
 
         /**
          * Reads a XAO object from a file.
@@ -64,8 +64,8 @@ namespace XAO
          * @param xaoObject the XAO object.
          * @return true if the XAO object was read successful, false otherwise.
          */
-        static const bool readFromFile(const std::string& fileName, Xao* xaoObject)
-        throw (XAO_Exception);
+        static bool readFromFile(const std::string& fileName, Xao* xaoObject)
+        ;
 
         /**
          * Reads a XAO object from an XML string.
@@ -73,8 +73,8 @@ namespace XAO
          * @param xaoObject the XAO object.
          * @return true if the XAO object was read successful, false otherwise.
          */
-        static const bool setXML(const std::string& xml, Xao* xaoObject)
-        throw (XAO_Exception);
+        static bool setXML(const std::string& xml, Xao* xaoObject)
+        ;
     };
 }
 
index ed832be14d5f04dc78efa8706f039661f646b443..682128bd1da30faf0d30b55bd9432130133a1c19 100644 (file)
 using namespace XAO;
 
 
-const std::string XaoUtils::intToString(const int& value)
+std::string XaoUtils::intToString(int value)
 {
     std::ostringstream str;
     str << value;
     return str.str();
 }
 
-const int XaoUtils::stringToInt(const std::string& value)
-throw(XAO_Exception)
+int XaoUtils::stringToInt(const std::string& value)
 {
     int res;
     std::istringstream convert(value);
@@ -44,15 +43,14 @@ throw(XAO_Exception)
     return res;
 }
 
-const std::string XaoUtils::doubleToString(const double& value)
+std::string XaoUtils::doubleToString(double value)
 {
     std::ostringstream str;
     str << value;
     return str.str();
 }
 
-const double XaoUtils::stringToDouble(const std::string& value)
-throw(XAO_Exception)
+double XaoUtils::stringToDouble(const std::string& value)
 {
     double res;
     std::istringstream convert(value);
@@ -61,15 +59,12 @@ throw(XAO_Exception)
     return res;
 }
 
-const std::string XaoUtils::booleanToString(const bool& value)
+std::string XaoUtils::booleanToString(bool value)
 {
-    if (value)
-        return "true";
-    return "false";
+    return value ? "true" : "false";
 }
 
-const bool XaoUtils::stringToBoolean(const std::string& value)
-throw(XAO_Exception)
+bool XaoUtils::stringToBoolean(const std::string& value)
 {
     if (value == "true" || value == "1")
         return true;
@@ -79,8 +74,7 @@ throw(XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Invalid boolean value: " << value);
 }
 
-const std::string XaoUtils::dimensionToString(const XAO::Dimension& dimension)
-throw(XAO_Exception)
+std::string XaoUtils::dimensionToString(XAO::Dimension dimension)
 {
     if (dimension == XAO::VERTEX)
         return "vertex";
@@ -96,8 +90,7 @@ throw(XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Bad dimension: " << dimension);
 }
 
-const XAO::Dimension XaoUtils::stringToDimension(const std::string& dimension)
-throw(XAO_Exception)
+XAO::Dimension XaoUtils::stringToDimension(const std::string& dimension)
 {
     if (dimension == "vertex")
         return XAO::VERTEX;
@@ -113,8 +106,7 @@ throw(XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Bad dimension: " << dimension);
 }
 
-const std::string XaoUtils::fieldTypeToString(const XAO::Type& type)
-throw(XAO_Exception)
+std::string XaoUtils::fieldTypeToString(XAO::Type type)
 {
     if (type ==XAO:: BOOLEAN)
         return "boolean";
@@ -128,8 +120,7 @@ throw(XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Bad type: " << type);
 }
 
-const XAO::Type XaoUtils::stringToFieldType(const std::string& type)
-throw(XAO_Exception)
+XAO::Type XaoUtils::stringToFieldType(const std::string& type)
 {
     if (type == "boolean")
         return XAO::BOOLEAN;
@@ -143,8 +134,7 @@ throw(XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Bad type: " << type);
 }
 
-const std::string XaoUtils::shapeFormatToString(const XAO::Format& format)
-throw(XAO_Exception)
+std::string XaoUtils::shapeFormatToString(XAO::Format format)
 {
     if (format == XAO::BREP)
         return "BREP";
@@ -154,8 +144,7 @@ throw(XAO_Exception)
     throw XAO_Exception(MsgBuilder() << "Bad format: " << format);
 }
 
-const XAO::Format XaoUtils::stringToShapeFormat(const std::string& format)
-throw(XAO_Exception)
+XAO::Format XaoUtils::stringToShapeFormat(const std::string& format)
 {
     if (format == "BREP")
         return XAO::BREP;
index add0a2569a83b88fb1bdc21005a10a379ec0705b..254be054ac147561c279726838735405470b6e75 100644 (file)
@@ -78,7 +78,7 @@ namespace XAO
          * \param value the integer to convert.
          * \return the string.
          */
-        static const std::string intToString(const int& value);
+        static std::string intToString(int value);
 
         /**
          * Converts a string into an integer.
@@ -86,28 +86,28 @@ namespace XAO
          * \return the integer value.
          * \throw XAO_Exception if value cannot be converted to string.
          */
-        static const int stringToInt(const std::string& value) throw(XAO_Exception);
+        static int stringToInt(const std::string& value);
 
         /**
          * Converts a double into a string.
          * \param value the double to convert.
          * \return the string.
          */
-        static const std::string doubleToString(const double& value);
+        static std::string doubleToString(double value);
         /**
          * Converts a string into a double.
          * \param value the string to convert.
          * \return the double value.
          * \throw XAO_Exception if value cannot be converted to string.
          */
-        static const double stringToDouble(const std::string& value) throw(XAO_Exception);
+        static double stringToDouble(const std::string& value);
 
         /**
          * Converts a boolean into a string.
          * \param value the boolean to convert.
          * \return the string.
          */
-        static const std::string booleanToString(const bool& value);
+        static std::string booleanToString(bool value);
         /**
          * Converts a string into a boolean.
          * \param value the string to convert.
@@ -115,7 +115,7 @@ namespace XAO
          * \throw XAO_Exception if value cannot be converted to boolean.
          * \note accepted values are "true", "1", "false", "0".
          */
-        static const bool stringToBoolean(const std::string& value) throw(XAO_Exception);
+        static bool stringToBoolean(const std::string& value);
 
         /**
          * Converts a Dimension to string.
@@ -123,7 +123,7 @@ namespace XAO
          * \return the dimension as a string.
          * \throw XAO_Exception
          */
-        static const std::string dimensionToString(const XAO::Dimension& dimension) throw(XAO_Exception);
+        static std::string dimensionToString(XAO::Dimension dimension);
 
         /**
          * Converts a string into a Dimension.
@@ -131,7 +131,7 @@ namespace XAO
          * \return the converted Dimension.
          * \throw XAO_Exception if dimension cannot be converted.
          */
-        static const XAO::Dimension stringToDimension(const std::string& dimension) throw(XAO_Exception);
+        static XAO::Dimension stringToDimension(const std::string& dimension);
 
         /**
          * Converts a Type to string.
@@ -139,7 +139,7 @@ namespace XAO
          * \return the Type as a string.
          * \throw XAO_Exception
          */
-        static const std::string fieldTypeToString(const XAO::Type& type) throw(XAO_Exception);
+        static std::string fieldTypeToString(XAO::Type type);
 
         /**
          * Converts a string into a Type.
@@ -147,7 +147,7 @@ namespace XAO
          * \return the converted Type.
          * \throw XAO_Exception if type cannot be converted.
          */
-        static const XAO::Type stringToFieldType(const std::string& type) throw(XAO_Exception);
+        static XAO::Type stringToFieldType(const std::string& type);
 
         /**
          * Converts a Format to string.
@@ -155,7 +155,7 @@ namespace XAO
          * \return the Format as a string.
          * \throw XAO_Exception
          */
-        static const std::string shapeFormatToString(const XAO::Format& format) throw(XAO_Exception);
+        static std::string shapeFormatToString(XAO::Format format);
 
         /**
          * Converts a string into a Format.
@@ -163,7 +163,7 @@ namespace XAO
          * \return the converted Format.
          * \throw XAO_Exception if format cannot be converted.
          */
-        static const XAO::Format stringToShapeFormat(const std::string& format) throw(XAO_Exception);
+        static XAO::Format stringToShapeFormat(const std::string& format);
     };
 
     /**
index ff733203b5cb15a74f0b1561085f3d12b7677b6e..0ce43802f4360278ee87fa7315646806f1213228 100644 (file)
@@ -81,8 +81,8 @@ void XaoTest::testFields()
     CPPUNIT_ASSERT_EQUAL(3, fi->countComponents());
 
     Field* fb = obj.addField(XAO::BOOLEAN, XAO::FACE, 3);
-    Field* fd = obj.addField(XAO::DOUBLE, XAO::FACE, 3);
-    Field* fs = obj.addField(XAO::STRING, XAO::FACE, 3);
+    /*Field* fd = */obj.addField(XAO::DOUBLE, XAO::FACE, 3);
+    /*Field* fs = */obj.addField(XAO::STRING, XAO::FACE, 3);
     CPPUNIT_ASSERT_EQUAL(4, obj.countFields());
     CPPUNIT_ASSERT_THROW(obj.getField(10), XAO_Exception);
 
index 769a31738682f8671ae73fa7b02968c0683710bb..01b15f2fa2788f058489b42bdf1e0c5026c8114c 100644 (file)
@@ -110,5 +110,5 @@ bool XAOPlugin_Driver::GetCreationInformation(std::string&             theOperat
   return true;
 }
 
-IMPLEMENT_STANDARD_RTTIEXT(XAOPlugin_Driver, GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT(XAOPlugin_Driver, GEOM_BaseDriver)
  
index 1484c3acf9834a55ba547f12cc68e3fb2c3c5c1b..525130a4f88b379783d8eeba126e5fd3de81de55 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "GEOM_BaseDriver.hxx"
 
-DEFINE_STANDARD_HANDLE(XAOPlugin_Driver, GEOM_BaseDriver);
+DEFINE_STANDARD_HANDLE(XAOPlugin_Driver, GEOM_BaseDriver)
 
 class XAOPlugin_Driver: public GEOM_BaseDriver
 {
index e1df0531bb5dd6b4f25ffa9069cc67f9d0edc9c9..3763870492899bbc6a8188148938eca8438c4df5 100644 (file)
@@ -396,7 +396,7 @@ GEOM::GEOM_IOperations_ptr XAOPlugin_ExportDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool XAOPlugin_ExportDlg::isValid(QString& msg)
+bool XAOPlugin_ExportDlg::isValid(QString& /*msg*/)
 {
   // check shape
   if (ledShape->text().isEmpty())
index d199d04c6888af3bf44b701c3c1ef952845ff16f..a6b78c56e0806d43b49ac9e4f7ccb4f40b397146 100644 (file)
@@ -49,7 +49,7 @@ XAOPlugin_IECallBack::~XAOPlugin_IECallBack()
 bool
 XAOPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
                               const TCollection_AsciiString& theFileName,
-                              const TCollection_AsciiString& theFormatName,
+                              const TCollection_AsciiString& /*theFormatName*/,
                               const TCollection_AsciiString& theShapeFileName )
 {
   XAOPlugin_IOperations* aPluginOperations = XAOPlugin_OperationsCreator::get( GetEngine() );
@@ -73,7 +73,7 @@ XAOPlugin_IECallBack::Export( const Handle(GEOM_Object)      theOriginal,
  */
 //=============================================================================
 Handle(TColStd_HSequenceOfTransient)
-XAOPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName,
+XAOPlugin_IECallBack::Import( const TCollection_AsciiString& /*theFormatName*/,
                               const TCollection_AsciiString& theFileName )
 {
   XAOPlugin_IOperations* aPluginOperations = XAOPlugin_OperationsCreator::get( GetEngine() );
index 7e02ed4d140cd3795dffa7eace67d0c7b6ced69c..57e08bcbdc6dcaf5125a12ba30be6d21cac3bb02 100644 (file)
@@ -182,7 +182,7 @@ bool XAOPlugin_IOperations::exportGroups( std::list<Handle(GEOM_Object)> groupLi
 
 void XAOPlugin_IOperations::exportFields( std::list<Handle(GEOM_Field)> fieldList,
                                           XAO::Xao* xaoObject,
-                                          XAO::BrepGeometry* geometry )
+                                          XAO::BrepGeometry* /*geometry*/ )
 {
   std::list<Handle(GEOM_Field)>::iterator fieldIterator = fieldList.begin();
   while (fieldIterator != fieldList.end())
index cf2e3f8ef92ae4550ec3ceb9cd6b7d8e7d17dc71..84a4ec2f977d0597976b643e3ab9341c199abc45 100644 (file)
@@ -242,7 +242,7 @@ GEOM::GEOM_IOperations_ptr XAOPlugin_ImportDlg::createOperation()
 // function : isValid
 // purpose  :
 //=================================================================================
-bool XAOPlugin_ImportDlg::isValid(QString& msg)
+bool XAOPlugin_ImportDlg::isValid(QString& /*msg*/)
 {
   // check file name
   if (ledFileName->text().isEmpty())