#18963 Minimize compiler warnings

This commit is contained in:
SALOME 2020-08-19 10:06:02 +03:00 committed by vsr
parent ea9614aed9
commit 1405980f7e
350 changed files with 1304 additions and 1355 deletions

View File

@ -523,4 +523,4 @@ GetCreationInformation(std::string& theOperationName,
return true; return true;
} }
IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_DividedDiskDriver,GEOM_BaseDriver); IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_DividedDiskDriver,GEOM_BaseDriver)

View File

@ -33,7 +33,7 @@ class gp_Pnt;
class gp_Dir; class gp_Dir;
class gp_Ax3; class gp_Ax3;
DEFINE_STANDARD_HANDLE( AdvancedEngine_DividedDiskDriver, GEOM_BaseDriver ); DEFINE_STANDARD_HANDLE( AdvancedEngine_DividedDiskDriver, GEOM_BaseDriver )
class AdvancedEngine_DividedDiskDriver : public GEOM_BaseDriver class AdvancedEngine_DividedDiskDriver : public GEOM_BaseDriver
{ {

View File

@ -459,31 +459,32 @@ bool AdvancedEngine_IOperations::MakeGroups(Handle(GEOM_Object) theShape, int sh
#ifdef FIND_GROUPS_BY_POINTS #ifdef FIND_GROUPS_BY_POINTS
// BEGIN: new groups search // BEGIN: new groups search
/*
// W2 R2 W2 R2
// .----.-----.----. .----.-----.----.
// e| | | | | e| | | | |
// | | | | | | | | | |
// . | | | . . | | | .
// g / ''..| | |..'' \ g / ''..| | |..'' \
// f / ''''''' \ f / ''''''' \
// .---.--'.. | | | ..'--.---. .---.--'.. | | | ..'--.---.
// |a \ '''...........''' / | |a \ '''...........''' / |
// |-------\------' | '------/-------. |-------\------' | '------/-------.
// | \ | / | | \ | / |
// c| \ | / | c| \ | / |
// | R1 \ | / | | R1 \ | / |
// | \ | / | | \ | / |
// ._________________|_________________. ._________________|_________________.
// | L1 | | | L1 | |
// | | | | | |
// | | | | | |
// b| | | b| | |
// | | | | | |
// |-----------------|-----------------| |-----------------|-----------------|
// | W1 | | | W1 | |
// '-----------------'-----------------' '-----------------'-----------------'
// d d
*/
// "Thickness" group (a) // "Thickness" group (a)
gp_Pnt aPntA (-theL1, 0, theR1 + theW1/2.); gp_Pnt aPntA (-theL1, 0, theR1 + theW1/2.);
@ -1338,7 +1339,7 @@ bool AdvancedEngine_IOperations::MakePipeTShapePartition(Handle(GEOM_Object) the
else { else {
Handle(GEOM_Object) P1, P2, P3, P4, P5, P6; Handle(GEOM_Object) P1, P2, P3, P4, P5, P6;
int idP1, idP2, idP3, idP4; 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; double ZX=0, ZY=0;
std::vector<int> LX; std::vector<int> LX;
std::vector<int> LY; std::vector<int> LY;
@ -1412,9 +1413,9 @@ bool AdvancedEngine_IOperations::MakePipeTShapePartition(Handle(GEOM_Object) the
idP3 = LY.at(1); idP3 = LY.at(1);
P1 = Handle(GEOM_Object)::DownCast(extremVertices->Value(idP1)); 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)); 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); Handle(GEOM_Object) Cote_1 = myBasicOperations->MakeLineTwoPnt(P1, vi1);
if (Cote_1.IsNull()) { if (Cote_1.IsNull()) {
@ -1563,7 +1564,7 @@ bool AdvancedEngine_IOperations::MakePipeTShapePartition(Handle(GEOM_Object) the
// Mirror and glue faces // Mirror and glue faces
bool AdvancedEngine_IOperations::MakePipeTShapeMirrorAndGlue(Handle(GEOM_Object) theShape, bool AdvancedEngine_IOperations::MakePipeTShapeMirrorAndGlue(Handle(GEOM_Object) theShape,
double theR1, double theW1, double theL1, double theR1, double theW1, double theL1,
double theR2, double theW2, double theL2) double /*theR2*/, double /*theW2*/, double theL2)
{ {
SetErrorCode(KO); SetErrorCode(KO);
@ -1682,16 +1683,17 @@ TopoDS_Shape AdvancedEngine_IOperations::MakePipeTShapeThicknessReduction
{ {
// Add thickness reduction elements // Add thickness reduction elements
// at the three extremities: Left, Right and Incident // at the three extremities: Left, Right and Incident
// /*
// ---------------------. ---------------------.
// W \ W \
// ---------------------. \ ---------------------. \
// ^ \ '-----------------. ^ \ '-----------------.
// |R \ Wthin | |R \ Wthin |
// | '-----------------' | '-----------------'
// v Rthin v Rthin
// --.--.--.--.--.--.--.--.--.--.--.--.--.--.-- --.--.--.--.--.--.--.--.--.--.--.--.--.--.--
// Ltrans Lthin Ltrans Lthin
*/
TopoDS_Shape aResult = theShape; TopoDS_Shape aResult = theShape;
double aTol = Precision::Confusion(); double aTol = Precision::Confusion();
@ -1805,15 +1807,17 @@ TopoDS_Shape AdvancedEngine_IOperations::MakeThicknessReduction (gp_Ax2 theAxes,
} }
bool isThinPart = (Lthin > aTol); bool isThinPart = (Lthin > aTol);
// . /*
// W |\ .
// . \ W |\
// ^ \ '-----------------. . \
// |R \| | Wthin ^ \ '-----------------.
// | '-----------------' |R \| | Wthin
// v Rthin | '-----------------'
// --.--.--.--.--.--.--.--.--.--.--.--.--> theAxes.Direction() v Rthin
// Ltrans Lthin --.--.--.--.--.--.--.--.--.--.--.--.--> theAxes.Direction()
Ltrans Lthin
*/
double RExt = R + W; double RExt = R + W;
double RthinExt = Rthin + Wthin; double RthinExt = Rthin + Wthin;

View File

@ -684,4 +684,4 @@ GetCreationInformation(std::string& theOperationName,
return true; return true;
} }
IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_PipeTShapeDriver,GEOM_BaseDriver); IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_PipeTShapeDriver,GEOM_BaseDriver)

View File

@ -28,7 +28,7 @@
#include <TColStd_HSequenceOfInteger.hxx> #include <TColStd_HSequenceOfInteger.hxx>
#include <Geom_Surface.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 class AdvancedEngine_PipeTShapeDriver : public GEOM_BaseDriver
{ {

View File

@ -266,4 +266,4 @@ GetCreationInformation(std::string& theOperationName,
return true; return true;
} }
IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_SmoothingSurfaceDriver,GEOM_BaseDriver); IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_SmoothingSurfaceDriver,GEOM_BaseDriver)

View File

@ -25,7 +25,7 @@
#include <TColgp_HArray1OfPnt.hxx> #include <TColgp_HArray1OfPnt.hxx>
#include <TopoDS_Shape.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 class AdvancedEngine_SmoothingSurfaceDriver : public GEOM_BaseDriver
{ {

View File

@ -134,7 +134,7 @@ void AdvancedGUI_DividedCylinderDlg::Init()
// function : SetDoubleSpinBoxStep() // function : SetDoubleSpinBoxStep()
// purpose : Double spin box management // 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 @@// //@@ set double spin box step for all spin boxes here @@//
} }
@ -223,7 +223,7 @@ GEOM::GEOM_IOperations_ptr AdvancedGUI_DividedCylinderDlg::createOperation()
// function : isValid // function : isValid
// purpose : // purpose :
//================================================================================= //=================================================================================
bool AdvancedGUI_DividedCylinderDlg::isValid (QString& msg) bool AdvancedGUI_DividedCylinderDlg::isValid (QString& /*msg*/)
{ {
bool ok = true; bool ok = true;

View File

@ -169,7 +169,7 @@ void AdvancedGUI_DividedDiskDlg::Init()
// function : SetDoubleSpinBoxStep() // function : SetDoubleSpinBoxStep()
// purpose : Double spin box management // 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 @@// //@@ set double spin box step for all spin boxes here @@//
} }
@ -399,7 +399,7 @@ GEOM::GEOM_IOperations_ptr AdvancedGUI_DividedDiskDlg::createOperation()
// function : isValid // function : isValid
// purpose : // purpose :
//================================================================================= //=================================================================================
bool AdvancedGUI_DividedDiskDlg::isValid (QString& msg) bool AdvancedGUI_DividedDiskDlg::isValid (QString& /*msg*/)
{ {
bool ok = true; bool ok = true;

View File

@ -420,7 +420,7 @@ void AdvancedGUI_PipeTShapeDlg::ApplyNewDimensions()
// function : UpdatePicture() // function : UpdatePicture()
// purpose : // purpose :
//================================================================================= //=================================================================================
void AdvancedGUI_PipeTShapeDlg::UpdatePicture (QWidget* old, QWidget* now) void AdvancedGUI_PipeTShapeDlg::UpdatePicture (QWidget* /*old*/, QWidget* now)
{ {
if (ChamferGroupParams->GroupBox1->isChecked()) if (ChamferGroupParams->GroupBox1->isChecked())
if (now == MainTubeGroupParams->SpinBox_DX) if (now == MainTubeGroupParams->SpinBox_DX)
@ -504,7 +504,7 @@ void AdvancedGUI_PipeTShapeDlg::SetPosition (bool isChecked)
// function : ValueChangedInSpinBox() // function : ValueChangedInSpinBox()
// purpose : // purpose :
//================================================================================= //=================================================================================
void AdvancedGUI_PipeTShapeDlg::ValueChangedInSpinBox (double newValue) void AdvancedGUI_PipeTShapeDlg::ValueChangedInSpinBox (double /*newValue*/)
{ {
if (JunctionPointsSel->GroupBox1->isChecked() && myOkPoint1 && myOkPoint2 && myOkPoint3) if (JunctionPointsSel->GroupBox1->isChecked() && myOkPoint1 && myOkPoint2 && myOkPoint3)
CheckCompatiblePosition(myPoint1, myPoint2, myPoint3, 0.01); CheckCompatiblePosition(myPoint1, myPoint2, myPoint3, 0.01);

View File

@ -54,7 +54,7 @@ BREPPlugin_ExportDriver::BREPPlugin_ExportDriver()
//function : Execute //function : Execute
//purpose : //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; if (Label().IsNull()) return 0;
Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() ); Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@ -89,10 +89,10 @@ Standard_Integer BREPPlugin_ExportDriver::Execute(Handle(TFunction_Logbook)& log
*/ */
//================================================================================ //================================================================================
bool BREPPlugin_ExportDriver:: bool BREPPlugin_ExportDriver::
GetCreationInformation( std::string& theOperationName, GetCreationInformation( std::string& /*theOperationName*/,
std::vector<GEOM_Param>& theParams ) std::vector<GEOM_Param>& /*theParams*/ )
{ {
return false; return false;
} }
IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ExportDriver,GEOM_BaseDriver ); IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ExportDriver,GEOM_BaseDriver )

View File

@ -23,7 +23,7 @@
// GEOM includes // GEOM includes
#include "GEOM_BaseDriver.hxx" #include "GEOM_BaseDriver.hxx"
DEFINE_STANDARD_HANDLE( BREPPlugin_ExportDriver, GEOM_BaseDriver ); DEFINE_STANDARD_HANDLE( BREPPlugin_ExportDriver, GEOM_BaseDriver )
class BREPPlugin_ExportDriver : public GEOM_BaseDriver class BREPPlugin_ExportDriver : public GEOM_BaseDriver
{ {

View File

@ -47,8 +47,8 @@ BREPPlugin_IECallBack::~BREPPlugin_IECallBack()
//============================================================================= //=============================================================================
bool bool
BREPPlugin_IECallBack::Export( const Handle(GEOM_Object) theOriginal, BREPPlugin_IECallBack::Export( const Handle(GEOM_Object) theOriginal,
const TCollection_AsciiString& theFileName, const TCollection_AsciiString& theFileName,
const TCollection_AsciiString& theFormatName ) const TCollection_AsciiString& /*theFormatName*/ )
{ {
BREPPlugin_IOperations* aPluginOperations = BREPPlugin_OperationsCreator::get( GetEngine() ); BREPPlugin_IOperations* aPluginOperations = BREPPlugin_OperationsCreator::get( GetEngine() );
aPluginOperations->ExportBREP( theOriginal, theFileName ); aPluginOperations->ExportBREP( theOriginal, theFileName );
@ -61,7 +61,7 @@ BREPPlugin_IECallBack::Export( const Handle(GEOM_Object) theOriginal,
*/ */
//============================================================================= //=============================================================================
Handle(TColStd_HSequenceOfTransient) Handle(TColStd_HSequenceOfTransient)
BREPPlugin_IECallBack::Import( const TCollection_AsciiString& theFormatName, BREPPlugin_IECallBack::Import( const TCollection_AsciiString& /*theFormatName*/,
const TCollection_AsciiString& theFileName ) const TCollection_AsciiString& theFileName )
{ {
BREPPlugin_IOperations* aPluginOperations = BREPPlugin_OperationsCreator::get( GetEngine() ); BREPPlugin_IOperations* aPluginOperations = BREPPlugin_OperationsCreator::get( GetEngine() );

View File

@ -109,4 +109,4 @@ GetCreationInformation( std::string& theOperationName,
return true; return true;
} }
IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ImportDriver, GEOM_BaseDriver ); IMPLEMENT_STANDARD_RTTIEXT( BREPPlugin_ImportDriver, GEOM_BaseDriver )

View File

@ -23,7 +23,7 @@
// GEOM includes // GEOM includes
#include "GEOM_BaseDriver.hxx" #include "GEOM_BaseDriver.hxx"
DEFINE_STANDARD_HANDLE( BREPPlugin_ImportDriver, GEOM_BaseDriver ); DEFINE_STANDARD_HANDLE( BREPPlugin_ImportDriver, GEOM_BaseDriver )
class BREPPlugin_ImportDriver : public GEOM_BaseDriver class BREPPlugin_ImportDriver : public GEOM_BaseDriver
{ {

View File

@ -126,7 +126,7 @@ bool BasicGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
// function : 0nMousePress() // function : 0nMousePress()
// purpose : [static] manage mouse events // 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(); QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();

View File

@ -459,7 +459,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_ArcDlg::createOperation()
// function : isValid // function : isValid
// purpose : // purpose :
//================================================================================= //=================================================================================
bool BasicGUI_ArcDlg::isValid( QString& msg ) bool BasicGUI_ArcDlg::isValid( QString& /*msg*/ )
{ {
bool ok = myPoint1 && myPoint2 && myPoint3 && bool ok = myPoint1 && myPoint2 && myPoint3 &&
myPoint1 != myPoint2 && myPoint1 != myPoint3 && myPoint2 != myPoint3; myPoint1 != myPoint2 && myPoint1 != myPoint3 && myPoint2 != myPoint3;

View File

@ -360,7 +360,7 @@ void BasicGUI_EllipseDlg::enterEvent( QEvent* )
// function : ValueChangedInSpinBox() // function : ValueChangedInSpinBox()
// purpose : // purpose :
//================================================================================= //=================================================================================
void BasicGUI_EllipseDlg::ValueChangedInSpinBox( double newValue ) void BasicGUI_EllipseDlg::ValueChangedInSpinBox( double /*newValue*/ )
{ {
displayPreview(true); displayPreview(true);
} }

View File

@ -371,7 +371,7 @@ GEOM::GEOM_IOperations_ptr BasicGUI_LineDlg::createOperation()
// function : isValid // function : isValid
// purpose : // purpose :
//================================================================================= //=================================================================================
bool BasicGUI_LineDlg::isValid( QString& msg ) bool BasicGUI_LineDlg::isValid( QString& /*msg*/ )
{ {
bool ok = false; bool ok = false;
switch ( getConstructorId() ) { switch ( getConstructorId() ) {

View File

@ -378,13 +378,13 @@ void BasicGUI_MarkerDlg::onSelectionDone()
return; 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 if ( getConstructorId() == 1 ) // by shape position
aNeedType = TopAbs_SHAPE; aNeedType = TopAbs_SHAPE;
else if ( getConstructorId() == 2 ) // by point and two vectors else if ( getConstructorId() == 2 ) // by point and two vectors
aNeedType = myEditCurrentArgument == Group2->LineEdit1 ? TopAbs_VERTEX : TopAbs_EDGE; 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; TopoDS_Shape aShape;
if ( aSelectedObject && GEOMBase::GetShape( aSelectedObject.get(), aShape ) && !aShape.IsNull() ) { if ( aSelectedObject && GEOMBase::GetShape( aSelectedObject.get(), aShape ) && !aShape.IsNull() ) {
QString aName = GEOMBase::GetName( aSelectedObject.get() ); QString aName = GEOMBase::GetName( aSelectedObject.get() );

View File

@ -633,7 +633,7 @@ void BasicGUI_PlaneDlg::enterEvent( QEvent* )
// function : ValueChangedInSpinBox() // function : ValueChangedInSpinBox()
// purpose : // purpose :
//================================================================================= //=================================================================================
void BasicGUI_PlaneDlg::ValueChangedInSpinBox( double newValue ) void BasicGUI_PlaneDlg::ValueChangedInSpinBox( double /*newValue*/ )
{ {
displayPreview(true); displayPreview(true);
} }

View File

@ -667,7 +667,7 @@ void BasicGUI_PointDlg::DeactivateActiveDialog()
// function : ValueChangedInSpinBox() // function : ValueChangedInSpinBox()
// purpose : // purpose :
//================================================================================= //=================================================================================
void BasicGUI_PointDlg::ValueChangedInSpinBox(double newValue) void BasicGUI_PointDlg::ValueChangedInSpinBox(double /*newValue*/)
{ {
displayPreview(true); displayPreview(true);
} }
@ -957,7 +957,7 @@ QList<GEOM::GeomObjPtr> BasicGUI_PointDlg::getSourceObjects()
// function : ClickParamCoord() // function : ClickParamCoord()
// purpose : // purpose :
//================================================================================= //=================================================================================
void BasicGUI_PointDlg::ClickParamCoord(int id) void BasicGUI_PointDlg::ClickParamCoord(int /*id*/)
{ {
updateParamCoord(true); updateParamCoord(true);
displayPreview(true); displayPreview(true);

View File

@ -367,7 +367,7 @@ void BasicGUI_VectorDlg::enterEvent( QEvent* )
// function : ValueChangedInSpinBox() // function : ValueChangedInSpinBox()
// purpose : // purpose :
//================================================================================= //=================================================================================
void BasicGUI_VectorDlg::ValueChangedInSpinBox( double newValue ) void BasicGUI_VectorDlg::ValueChangedInSpinBox( double /*newValue*/ )
{ {
displayPreview(true); displayPreview(true);
} }
@ -376,7 +376,7 @@ void BasicGUI_VectorDlg::ValueChangedInSpinBox( double newValue )
// function : ReverseVector() // function : ReverseVector()
// purpose : 'state' not used here // purpose : 'state' not used here
//================================================================================= //=================================================================================
void BasicGUI_VectorDlg::ReverseVector( int state ) void BasicGUI_VectorDlg::ReverseVector( int /*state*/ )
{ {
double dx = -GroupDimensions->SpinBox_DX->value(); double dx = -GroupDimensions->SpinBox_DX->value();
double dy = -GroupDimensions->SpinBox_DY->value(); double dy = -GroupDimensions->SpinBox_DY->value();

View File

@ -34,7 +34,7 @@
#include <Precision.hxx> #include <Precision.hxx>
IMPLEMENT_STANDARD_RTTIEXT(BlockFix_BlockFixAPI, Standard_Transient); IMPLEMENT_STANDARD_RTTIEXT(BlockFix_BlockFixAPI, Standard_Transient)
//======================================================================= //=======================================================================
//function : BlockFix_BlockFixAPI //function : BlockFix_BlockFixAPI

View File

@ -31,7 +31,7 @@
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
#include <Standard_Real.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 class BlockFix_BlockFixAPI : public Standard_Transient
{ {

View File

@ -50,7 +50,7 @@
#include <gp_Pnt.hxx> #include <gp_Pnt.hxx>
IMPLEMENT_STANDARD_RTTIEXT(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification); IMPLEMENT_STANDARD_RTTIEXT(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification)
//======================================================================= //=======================================================================
//function : BlockFix_PeriodicSurfaceModifier() //function : BlockFix_PeriodicSurfaceModifier()

View File

@ -44,7 +44,7 @@ class Geom_Curve;
class Geom2d_Curve; class Geom2d_Curve;
class gp_Pnt; class gp_Pnt;
DEFINE_STANDARD_HANDLE(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification); DEFINE_STANDARD_HANDLE(BlockFix_PeriodicSurfaceModifier, BRepTools_Modification)
class BlockFix_PeriodicSurfaceModifier : public BRepTools_Modification { class BlockFix_PeriodicSurfaceModifier : public BRepTools_Modification {

View File

@ -56,7 +56,7 @@
#include <gp_Pnt.hxx> #include <gp_Pnt.hxx>
#include <gp_Sphere.hxx> #include <gp_Sphere.hxx>
IMPLEMENT_STANDARD_RTTIEXT(BlockFix_SphereSpaceModifier, BRepTools_Modification); IMPLEMENT_STANDARD_RTTIEXT(BlockFix_SphereSpaceModifier, BRepTools_Modification)
//======================================================================= //=======================================================================
//function : BlockFix_SphereSpaceModifier //function : BlockFix_SphereSpaceModifier

View File

@ -42,7 +42,7 @@ class Geom_Curve;
class Geom2d_Curve; class Geom2d_Curve;
class gp_Pnt; class gp_Pnt;
DEFINE_STANDARD_HANDLE(BlockFix_SphereSpaceModifier, BRepTools_Modification); DEFINE_STANDARD_HANDLE(BlockFix_SphereSpaceModifier, BRepTools_Modification)
class BlockFix_SphereSpaceModifier : public BRepTools_Modification { class BlockFix_SphereSpaceModifier : public BRepTools_Modification {

View File

@ -904,7 +904,7 @@ Standard_Boolean BlockFix_UnionFaces::IsSameDomain(const TopoDS_Face& aFace,
return anIIInt.TangentFaces(); return anIIInt.TangentFaces();
} }
catch (Standard_Failure) { catch (Standard_Failure&) {
return false; return false;
} }
} }

View File

@ -195,7 +195,7 @@ void BuildGUI_CompoundDlg::ActivateThisDialog()
// function : enterEvent() // function : enterEvent()
// purpose : // purpose :
//================================================================================= //=================================================================================
void BuildGUI_CompoundDlg::enterEvent(QEvent* e) void BuildGUI_CompoundDlg::enterEvent(QEvent*)
{ {
if ( !mainFrame()->GroupConstructors->isEnabled() ) if ( !mainFrame()->GroupConstructors->isEnabled() )
ActivateThisDialog(); ActivateThisDialog();

View File

@ -405,7 +405,7 @@ void BuildGUI_EdgeDlg::enterEvent (QEvent*)
// function : ValueChangedInSpinBox() // function : ValueChangedInSpinBox()
// purpose : // purpose :
//================================================================================= //=================================================================================
void BuildGUI_EdgeDlg::ValueChangedInSpinBox(double newValue) void BuildGUI_EdgeDlg::ValueChangedInSpinBox(double /*newValue*/)
{ {
displayPreview(true); displayPreview(true);
} }

View File

@ -554,7 +554,7 @@ void BuildGUI_FaceDlg::ActivateThisDialog()
// function : onItemClicked() // function : onItemClicked()
// purpose : called when tree item was clicked // 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 ) ) if ( !theItem || !( theItem->flags() & Qt::ItemIsSelectable ) )
return; return;

View File

@ -371,24 +371,22 @@ bool BuildGUI_SolidDlg::execute( ObjectList& objects )
switch (getConstructorId()) { switch (getConstructorId()) {
case 0: case 0:
{ {
if ( GroupSolid->CheckButton1->isChecked() ) { if ( GroupSolid->CheckButton1->isChecked() ) {
GEOM::ListOfGO_var objlist = new GEOM::ListOfGO(); GEOM::ListOfGO_var objlist = new GEOM::ListOfGO();
objlist->length( myShells.count() ); objlist->length( myShells.count() );
for ( int i = 0; i < myShells.count(); i++ ) for ( int i = 0; i < myShells.count(); i++ )
objlist[i] = myShells[i].copy(); objlist[i] = myShells[i].copy();
anObj = anOper->MakeSolidShells( objlist.in() ); anObj = anOper->MakeSolidShells( objlist.in() );
if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() ); }
} else {
else { for ( int i = 0, n = myShells.count(); i< n; i++ ) {
for ( int i = 0, n = myShells.count(); i< n; i++ ){ anObj = anOper->MakeSolidShell( myShells[ i ].get() );
anObj = anOper->MakeSolidShell( myShells[ i ].get() ); if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() );
}
if ( !anObj->_is_nil() ) objects.push_back( anObj._retn() ); }
} break;
}
break;
} }
case 1: case 1:
{ {
@ -397,9 +395,9 @@ bool BuildGUI_SolidDlg::execute( ObjectList& objects )
for ( int i = 0; i < myShells.count(); i++ ) for ( int i = 0; i < myShells.count(); i++ )
objlist[i] = myShells[i].copy(); 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; break;
} }
} }

View File

@ -48,6 +48,6 @@ namespace CurveCreator
typedef std::list<CurveCreator_PosPoint*> PosPointsList; typedef std::list<CurveCreator_PosPoint*> PosPointsList;
//! Map of sections with positioned points //! Map of sections with positioned points
typedef std::map<int,PosPointsList> SectionsMap; typedef std::map<int,PosPointsList> SectionsMap;
}; }
#endif #endif

View File

@ -48,19 +48,19 @@
// purpose: // purpose:
//======================================================================= //=======================================================================
CurveCreator_Curve::CurveCreator_Curve( const CurveCreator::Dimension theDimension ) CurveCreator_Curve::CurveCreator_Curve( const CurveCreator::Dimension theDimension )
: myIsLocked (false), : mySkipSorting (false),
myIsLocked (false),
myDimension (theDimension), myDimension (theDimension),
myDisplayer (NULL), myDisplayer (NULL),
myAISShape (NULL),
myNbUndos (0),
myNbRedos (0),
myUndoDepth (-1),
myOpLevel(0),
mySkipSorting(false),
myPointAspectColor (Quantity_NOC_ROYALBLUE4), myPointAspectColor (Quantity_NOC_ROYALBLUE4),
myCurveColor (Quantity_NOC_RED), 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 ); sprintf( aBuffer, "Section_%d", i+1 );
std::string aName(aBuffer); std::string aName(aBuffer);
int j; int j;
for( j = 0 ; j < mySections.size() ; j++ ){ for( j = 0 ; j < (int)mySections.size() ; j++ ){
aSection = (CurveCreator_Section*)getSection( j ); aSection = (CurveCreator_Section*)getSection( j );
if ( aSection && aSection->myName == aName ) if ( aSection && aSection->myName == aName )
break; break;
} }
if( j == mySections.size() ) if( j == (int)mySections.size() )
return aName; return aName;
} }
return ""; return "";
@ -791,8 +791,8 @@ bool CurveCreator_Curve::addPointsInternal( const CurveCreator::SectionsMap &the
anIterPosition = aSection->myPoints.end(); anIterPosition = aSection->myPoints.end();
else else
anIterPosition = aSection->myPoints.begin() + toICoord(anIPnt); anIterPosition = aSection->myPoints.begin() + toICoord(anIPnt);
CurveCreator::Coordinates::const_iterator aFirstPosition = /*CurveCreator::Coordinates::const_iterator aFirstPosition =
aCoords.begin(); aCoords.begin();*/
aSection->myPoints.insert(anIterPosition, aSection->myPoints.insert(anIterPosition,
aCoords.begin(), aCoords.end()); aCoords.begin(), aCoords.end());
} }
@ -884,9 +884,9 @@ bool CurveCreator_Curve::setPoint( const int theISection,
aPoints.push_back( aPosPoint ); aPoints.push_back( aPosPoint );
aSectionsMap[theISection] = aPoints; aSectionsMap[theISection] = aPoints;
int aSize1 = getNbPoints( theISection ); /*int aSize1 = */getNbPoints( theISection ); // todo: unused variable
res = setPointInternal( aSectionsMap ); res = setPointInternal( aSectionsMap );
int aSize2 = getNbPoints( theISection ); /*int aSize2 = */getNbPoints( theISection ); // todo: unused variable
finishOperation(); finishOperation();

View File

@ -217,7 +217,7 @@ public:
//! A virtual method. //! A virtual method.
const CurveCreator_ISection* getSection(const int theSectionIndex) const 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]; return (CurveCreator_ISection*)mySections[theSectionIndex];
} }

View File

@ -275,6 +275,8 @@ bool CurveCreator_Diff::init(const CurveCreator_Curve *theCurve,
setNbUndos(1); setNbUndos(1);
isOK = myPUndo[0].init(CurveCreator_Operation::RemoveSection, -1); isOK = myPUndo[0].init(CurveCreator_Operation::RemoveSection, -1);
break; break;
default:
break;
} }
} }
} }
@ -299,6 +301,8 @@ bool CurveCreator_Diff::init(const CurveCreator_Curve *theCurve,
isOK = myPUndo[0].init(CurveCreator_Operation::RenameSection, isOK = myPUndo[0].init(CurveCreator_Operation::RenameSection,
theCurve->getSectionName(theIntParam1), theIntParam1); theCurve->getSectionName(theIntParam1), theIntParam1);
break; break;
default:
break;
} }
} }
if( !isOK ){ if( !isOK ){

View File

@ -29,7 +29,7 @@ CurveCreator_Displayer::CurveCreator_Displayer( Handle(AIS_InteractiveContext) t
CurveCreator_Displayer::~CurveCreator_Displayer(void) CurveCreator_Displayer::~CurveCreator_Displayer(void)
{ {
eraseAll( true ); eraseAll( true );
for( int i = 0 ; i < myObjects.size() ; i++ ){ for( int i = 0 ; i < (int)myObjects.size() ; i++ ){
myObjects[i].Nullify(); myObjects[i].Nullify();
} }
myObjects.clear(); myObjects.clear();
@ -54,7 +54,7 @@ void CurveCreator_Displayer::eraseAll( bool isUpdate )
{ {
if(myObjects.empty()) if(myObjects.empty())
return; return;
for( int i = 0 ; i < myObjects.size() ; i++ ) for( int i = 0 ; i < (int)myObjects.size() ; i++ )
myContext->Erase(myObjects[i], Standard_False); myContext->Erase(myObjects[i], Standard_False);
myObjects.clear(); myObjects.clear();
if( isUpdate ) if( isUpdate )
@ -80,7 +80,7 @@ Quantity_Color CurveCreator_Displayer::getActiveColor( bool isHL )
void CurveCreator_Displayer::Update() 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->Update(myObjects[i], Standard_True);
myContext->UpdateCurrentViewer(); myContext->UpdateCurrentViewer();
} }

View File

@ -50,7 +50,7 @@ namespace CurveCreator
Dim3d = 3 Dim3d = 3
}; };
}; }
//! The type represents the interface to the curve section. //! The type represents the interface to the curve section.
struct CURVECREATOR_EXPORT CurveCreator_ISection struct CURVECREATOR_EXPORT CurveCreator_ISection

View File

@ -363,6 +363,8 @@ void CurveCreator_Operation::apply(CurveCreator_Curve *theCurve)
case CurveCreator_Operation::SetCoordinates: case CurveCreator_Operation::SetCoordinates:
theCurve->setPointInternal( aSectionsMap ); theCurve->setPointInternal( aSectionsMap );
break; break;
default:
break;
} }
} }
break; break;

View File

@ -205,10 +205,12 @@ int CurveCreator_TableView::getPointId( const int theRowId ) const
void CurveCreator_TableView::OnHeaderClick( int theLogicalId ) void CurveCreator_TableView::OnHeaderClick( int theLogicalId )
{ {
if( theLogicalId == myCurrentSortId ) if( theLogicalId == myCurrentSortId )
{
if( myCurrentSortOrder == Qt::AscendingOrder ) if( myCurrentSortOrder == Qt::AscendingOrder )
myCurrentSortOrder = Qt::DescendingOrder; myCurrentSortOrder = Qt::DescendingOrder;
else else
myCurrentSortOrder = Qt::AscendingOrder; myCurrentSortOrder = Qt::AscendingOrder;
}
sortByColumn( theLogicalId, myCurrentSortOrder ); sortByColumn( theLogicalId, myCurrentSortOrder );

View File

@ -65,7 +65,7 @@ CurveCreator_TreeViewModel::CurveCreator_TreeViewModel( CurveCreator_ICurve* the
int CurveCreator_TreeViewModel::columnCount(const QModelIndex & parent ) const int CurveCreator_TreeViewModel::columnCount(const QModelIndex & parent ) const
{ {
if( parent.internalId() == ID_SECTION ) if( parent.internalId() == (quintptr)ID_SECTION )
return 2; return 2;
else else
return 2; return 2;
@ -76,7 +76,7 @@ QVariant CurveCreator_TreeViewModel::data(const QModelIndex & index, int role )
int aRow = index.row(); int aRow = index.row();
int aColumn = index.column(); int aColumn = index.column();
if( myCurve ){ if( myCurve ){
if( index.internalId() == ID_SECTION ){ if( index.internalId() == (quintptr)ID_SECTION ){
if( role == Qt::DisplayRole ){ if( role == Qt::DisplayRole ){
if( aColumn == 0 ) if( aColumn == 0 )
return QString::fromStdString(myCurve->getSectionName(aRow)); return QString::fromStdString(myCurve->getSectionName(aRow));
@ -150,7 +150,7 @@ QModelIndex CurveCreator_TreeViewModel::parent(const QModelIndex & theIndex) con
if( !theIndex.isValid() ) if( !theIndex.isValid() )
return QModelIndex(); return QModelIndex();
if( theIndex.internalId() == ID_SECTION ){ if( theIndex.internalId() == (quintptr)ID_SECTION ){
return QModelIndex(); return QModelIndex();
} }
return createIndex( theIndex.internalId(), 0, ID_SECTION ); return createIndex( theIndex.internalId(), 0, ID_SECTION );
@ -165,7 +165,7 @@ int CurveCreator_TreeViewModel::rowCount(const QModelIndex & parent ) const
aRowCnt = myCurve->getNbSections(); aRowCnt = myCurve->getNbSections();
} }
else{ else{
if( parent.internalId() == ID_SECTION ){ if( parent.internalId() == (quintptr)ID_SECTION ){
//Points level //Points level
aRowCnt = myCurve->getNbPoints(parent.row()); 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 bool CurveCreator_TreeViewModel::isSection( const QModelIndex& theIndx ) const
{ {
if( theIndx.internalId() == ID_SECTION ) if( theIndx.internalId() == (quintptr)ID_SECTION )
return true; return true;
return false; return false;
} }
int CurveCreator_TreeViewModel::getSection( const QModelIndex& theIndx ) const int CurveCreator_TreeViewModel::getSection( const QModelIndex& theIndx ) const
{ {
if( theIndx.internalId() == ID_SECTION ) if( theIndx.internalId() == (quintptr)ID_SECTION )
return theIndx.row(); return theIndx.row();
return theIndx.internalId(); return theIndx.internalId();
} }
int CurveCreator_TreeViewModel::getPoint( const QModelIndex& theIndx ) const int CurveCreator_TreeViewModel::getPoint( const QModelIndex& theIndx ) const
{ {
if( theIndx.internalId() == ID_SECTION ) if( theIndx.internalId() == (quintptr)ID_SECTION )
return -1; return -1;
return theIndx.row(); 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 ); setExpanded( theIndx, isExpanded );
QItemSelectionModel::SelectionFlags aFlag = QItemSelectionModel::Select; QItemSelectionModel::SelectionFlags aFlag = QItemSelectionModel::Select;

View File

@ -618,9 +618,9 @@ void CurveCreator_Utils::setSelectedPoints( Handle(AIS_InteractiveContext) theCo
Handle(SelectMgr_Selection) aSelection = anAISShape->Selection( AIS_Shape::SelectionMode( TopAbs_VERTEX ) ); Handle(SelectMgr_Selection) aSelection = anAISShape->Selection( AIS_Shape::SelectionMode( TopAbs_VERTEX ) );
const NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>& selected = aSelection->Entities(); const NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>& selected = aSelection->Entities();
CurveCreator_ICurve::SectionToPointList::const_iterator anIt = thePoints.begin(), /*CurveCreator_ICurve::SectionToPointList::const_iterator anIt = thePoints.begin(),
aLast = thePoints.end(); aLast = thePoints.end();*/
bool isFound = false; //bool isFound = false;
for( int i=0; i<aSize; i++ ) for( int i=0; i<aSize; i++ )
{ {
for ( NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator selIter( selected ); 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 ); Handle(Select3D_SensitivePoint) aSenPnt = Handle(Select3D_SensitivePoint)::DownCast( aSenEntity );
gp_Pnt anOwnerPnt = aSenPnt->Point(); 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 && bool isIntersect = fabs( aPntsToSelect[i].X() - anOwnerPnt.X() ) < LOCAL_SELECTION_TOLERANCE &&
fabs( aPntsToSelect[i].Y() - anOwnerPnt.Y() ) < 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; return;
if ( theOpen ) { 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 // load the curve AIS object to the local context with the point selection
Handle(AIS_InteractiveObject) anAIS = theCurve->getAISObject(); Handle(AIS_InteractiveObject) anAIS = theCurve->getAISObject();
if ( !anAIS.IsNull() ) if ( !anAIS.IsNull() )
{ {
if ( anAIS->IsKind( STANDARD_TYPE( AIS_Shape ) ) ) 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 ) ); theContext->Activate( anAIS, AIS_Shape::SelectionMode( (TopAbs_ShapeEnum)TopAbs_VERTEX ) );
} }
} }

View File

@ -82,10 +82,10 @@ CurveCreator_Widget::CurveCreator_Widget(QWidget* parent,
CurveCreator_ICurve *theCurve, CurveCreator_ICurve *theCurve,
const int theActionFlags, const int theActionFlags,
const QStringList& theCoordTitles, const QStringList& theCoordTitles,
Qt::WindowFlags fl ) Qt::WindowFlags /*fl*/ )
: QWidget(parent), myNewSectionEditor(NULL), myCurve(theCurve), mySection(0), : QWidget(parent), myCurve(theCurve), myNewSectionEditor(NULL),
myOCCViewer( 0 ), mySection(0),
myDragStarted( false ), myDragInteractionStyle( SUIT_ViewModel::STANDARD ), myDragStarted( false ), myDragInteractionStyle( SUIT_ViewModel::STANDARD ),
myOCCViewer( 0 ),
myOld2DMode(OCCViewer_ViewWindow::No2dMode) myOld2DMode(OCCViewer_ViewWindow::No2dMode)
{ {
bool isToEnableClosed = !( theActionFlags & DisableClosedSection ); bool isToEnableClosed = !( theActionFlags & DisableClosedSection );
@ -431,6 +431,8 @@ void CurveCreator_Widget::updateActionsStates()
break; break;
}*/ }*/
default:
break;
} }
/*int aSelObjsCnt = aSelPoints.size() + aSelSections.size(); /*int aSelObjsCnt = aSelPoints.size() + aSelSections.size();
@ -480,7 +482,7 @@ void CurveCreator_Widget::onModificationMode(bool checked)
myLocalPointView->setVisible( 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()) else if (myActionMap[MODIFICATION_MODE_ID]->isChecked())
myActionMap[MODIFICATION_MODE_ID]->trigger(); myActionMap[MODIFICATION_MODE_ID]->trigger();
break; break;
default:
break;
} }
} }
updateActionsStates(); updateActionsStates();
@ -617,18 +621,18 @@ void CurveCreator_Widget::onModifySection()
bool isClosed = myNewSectionEditor->isClosed(); bool isClosed = myNewSectionEditor->isClosed();
CurveCreator::SectionType aSectType = myNewSectionEditor->getSectionType(); CurveCreator::SectionType aSectType = myNewSectionEditor->getSectionType();
if( myCurve->getSectionName(mySection) != aName.toStdString() ) 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 ) { if( myCurve->getSectionType(mySection) != aSectType ) {
myCurve->setSectionType( mySection, aSectType ); myCurve->setSectionType( mySection, aSectType );
isGeomModified = true; //isGeomModified = true;
} }
if( myCurve->isClosed(mySection) != isClosed ) { if( myCurve->isClosed(mySection) != isClosed ) {
myCurve->setClosed( mySection, isClosed ); myCurve->setClosed( mySection, isClosed );
isGeomModified = true; //isGeomModified = true;
} }
mySectionView->sectionChanged(mySection); mySectionView->sectionChanged(mySection);
updateUndoRedo(); updateUndoRedo();
@ -706,7 +710,7 @@ void CurveCreator_Widget::onJoinAll()
for( int i = 0, aNb = myCurve->getNbSections(); i < aNb ; i++ ){ for( int i = 0, aNb = myCurve->getNbSections(); i < aNb ; i++ ){
aSectionsToJoin.push_back( i ); aSectionsToJoin.push_back( i );
} }
bool aRes = myCurve->join( aSectionsToJoin ); /*bool aRes = */myCurve->join( aSectionsToJoin );
mySectionView->reset(); mySectionView->reset();
updateActionsStates(); updateActionsStates();
@ -1113,7 +1117,7 @@ void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEven
return; return;
if (!aHasShift) if (!aHasShift)
aCtx->ClearCurrents( false ); aCtx->ClearCurrents( false ); // todo: deprecated OCCT API
Handle(V3d_View) aView3d = aView->getViewPort()->getView(); Handle(V3d_View) aView3d = aView->getViewPort()->getView();
if ( !aView3d.IsNull() ) if ( !aView3d.IsNull() )
@ -1141,7 +1145,6 @@ void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEven
} }
if ( myDragStarted ) { if ( myDragStarted ) {
bool isDragged = myDragged;
CurveCreator_ICurve::SectionToPointList aDraggedPoints; CurveCreator_ICurve::SectionToPointList aDraggedPoints;
QMap<CurveCreator_ICurve::SectionToPoint, CurveCreator::Coordinates > anInitialDragPointsCoords; QMap<CurveCreator_ICurve::SectionToPoint, CurveCreator::Coordinates > anInitialDragPointsCoords;
if ( myDragged ) { if ( myDragged ) {
@ -1246,7 +1249,7 @@ void CurveCreator_Widget::onMouseMove( SUIT_ViewWindow*, QMouseEvent* theEvent )
* Set zero viewer by the last view closed in * Set zero viewer by the last view closed in
* \param theManager a viewer manager * \param theManager a viewer manager
*/ */
void CurveCreator_Widget::onLastViewClosed( SUIT_ViewManager* theManager ) void CurveCreator_Widget::onLastViewClosed( SUIT_ViewManager* /*theManager*/ )
{ {
myOCCViewer = 0; myOCCViewer = 0;
} }
@ -1266,7 +1269,7 @@ void CurveCreator_Widget::onMouseMove( QMouseEvent* theEvent )
onMouseMove( 0, 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 aCurrSect = myLocalPointView->getSectionId( theRow );
int aPntIndex = myLocalPointView->getPointId( theRow ); int aPntIndex = myLocalPointView->getPointId( theRow );
@ -1459,7 +1462,7 @@ void CurveCreator_Widget::updateLocalPointView()
return; return;
CurveCreator_Utils::getSelectedPoints( aContext, myCurve, myLocalPoints ); CurveCreator_Utils::getSelectedPoints( aContext, myCurve, myLocalPoints );
int aNbPoints = myLocalPoints.size(); //int aNbPoints = myLocalPoints.size();
//bool isRowLimit = aNbPoints > myLocalPointRowLimit; //bool isRowLimit = aNbPoints > myLocalPointRowLimit;
myLocalPointView->setVisible( getActionMode() == ModificationMode/* && !isRowLimit */); myLocalPointView->setVisible( getActionMode() == ModificationMode/* && !isRowLimit */);

View File

@ -38,11 +38,11 @@ const qreal arrowSize = 20;
DependencyTree_Arrow::DependencyTree_Arrow( DependencyTree_Object* theStartItem, DependencyTree_Arrow::DependencyTree_Arrow( DependencyTree_Object* theStartItem,
DependencyTree_Object* theEndItem, DependencyTree_Object* theEndItem,
QGraphicsItem* parent, QGraphicsScene* scene ) QGraphicsItem* parent, QGraphicsScene* /*scene*/ )
:QGraphicsLineItem( parent ), :QGraphicsLineItem( parent ),
myIsBiLink( false ),
myStartItem( theStartItem ), myStartItem( theStartItem ),
myEndItem( theEndItem ) myEndItem( theEndItem ),
myIsBiLink( false )
{ {
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();

View File

@ -82,7 +82,7 @@ DisplayGUI::~DisplayGUI()
// function : DisplayGUI::OnGUIEvent() // function : DisplayGUI::OnGUIEvent()
// purpose : Dispatch menu command // 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(); SalomeApp_Application* app = getGeometryGUI()->getApp();
if (!app) return false; if (!app) return false;

View File

@ -979,6 +979,6 @@ public:
namespace DlgRef namespace DlgRef
{ {
DLGREF_EXPORT QString PrintDoubleValue( double, int = 16 ); DLGREF_EXPORT QString PrintDoubleValue( double, int = 16 );
}; }
#endif // GEOM_DLGREF_H #endif // GEOM_DLGREF_H

View File

@ -31,7 +31,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>

View File

@ -31,7 +31,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -143,8 +143,8 @@
<tabstops> <tabstops>
<tabstop>PushButton1</tabstop> <tabstop>PushButton1</tabstop>
<tabstop>LineEdit1</tabstop> <tabstop>LineEdit1</tabstop>
<tabstop>ComboBox1</tabstop>
<tabstop>CheckButton1</tabstop> <tabstop>CheckButton1</tabstop>
<tabstop>ListView1</tabstop>
<tabstop>PushButton2</tabstop> <tabstop>PushButton2</tabstop>
<tabstop>PushButton3</tabstop> <tabstop>PushButton3</tabstop>
<tabstop>PushButton4</tabstop> <tabstop>PushButton4</tabstop>

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -36,7 +36,7 @@
<property name="title" > <property name="title" >
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout" > <layout class="QGridLayout" name="gridLayout1" >
<item row="3" column="0" colspan="4" > <item row="3" column="0" colspan="4" >
<layout class="QHBoxLayout" name="horizontalLayout" > <layout class="QHBoxLayout" name="horizontalLayout" >
<item> <item>

View File

@ -22,7 +22,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>

View File

@ -36,7 +36,7 @@
<property name="title" > <property name="title" >
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout" > <layout class="QGridLayout" name="gridLayout1" >
<item row="0" column="0" > <item row="0" column="0" >
<widget class="QLabel" name="TextLabel1" > <widget class="QLabel" name="TextLabel1" >
<property name="sizePolicy" > <property name="sizePolicy" >

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -213,7 +213,7 @@ bool EntityGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
// function : 0nMousePress() // function : 0nMousePress()
// purpose : [static] manage mouse events // 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(); QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
@ -295,7 +295,7 @@ bool EntityGUI::OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWi
// function : 0nMouseRelease() // function : 0nMouseRelease()
// purpose : [static] manage mouse events // 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); ((OCCViewer_ViewWindow*)theViewWindow)->setSketcherStyle(false);
#ifdef WITH_OPENCV #ifdef WITH_OPENCV
@ -324,7 +324,7 @@ bool EntityGUI::OnMouseRelease( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_View
// function : 0nMouseMove() // function : 0nMouseMove()
// purpose : [static] manage mouse events // 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(); QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
@ -390,7 +390,7 @@ void EntityGUI::DisplaySimulationShape( const TopoDS_Shape& S1, const TopoDS_Sha
} }
ic->UpdateCurrentViewer(); ic->UpdateCurrentViewer();
} }
catch( Standard_Failure ) { catch( Standard_Failure& ) {
MESSAGE( "Exception caught in EntityGUI::DisplaySimulationShape" ); MESSAGE( "Exception caught in EntityGUI::DisplaySimulationShape" );
} }
} }

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string>Values</string> <string>Values</string>
</property> </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"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string>Values</string> <string>Values</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string>Values</string> <string>Values</string>
</property> </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"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -130,8 +130,8 @@ private:
const Handle(Prs3d_Presentation)& aPresentation, const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer aMode); const Standard_Integer aMode);
void ComputeSelection ( const Handle(SelectMgr_Selection)& aSelection, void ComputeSelection ( const Handle(SelectMgr_Selection)& /*aSelection*/,
const Standard_Integer aMode){} ; const Standard_Integer /*aMode*/){} ;
protected: protected:
TCollection_ExtendedString aText; TCollection_ExtendedString aText;
@ -171,11 +171,11 @@ AIS_Text::AIS_Text( const TCollection_ExtendedString& text, const gp_Pnt& positi
aColor = color; aColor = color;
aFontAspect = fontAspect; aFontAspect = fontAspect;
aFont = font; 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 Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer aMode) const Standard_Integer /*aMode*/)
{ {
aPresentation->Clear(); aPresentation->Clear();
@ -191,8 +191,8 @@ void AIS_Text::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentation
asp->Aspect()->SetTextZoomable(aZoomable); asp->Aspect()->SetTextZoomable(aZoomable);
asp->Aspect()->SetTextAngle(aAngle); asp->Aspect()->SetTextAngle(aAngle);
asp->Aspect()->SetTextFontAspect(aFontAspect); 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) bool isSame (double d1, double d2)
{ {
@ -210,11 +210,11 @@ EntityGUI_3DSketcherDlg::EntityGUI_3DSketcherDlg (GeometryGUI* theGeometryGUI, Q
bool modal, Qt::WindowFlags fl, bool modal, Qt::WindowFlags fl,
const double lineWidth) const double lineWidth)
: GEOMBase_Skeleton(theGeometryGUI, parent, modal, fl), : GEOMBase_Skeleton(theGeometryGUI, parent, modal, fl),
myLengthIORedoList(),
myMode(-1), myMode(-1),
myOK(false), myOK(false),
myLineWidth(lineWidth), myLineWidth(lineWidth),
myGeometryGUI(theGeometryGUI), myGeometryGUI(theGeometryGUI),
myLengthIORedoList(),
myIsUndoRedo(false) myIsUndoRedo(false)
{ {
QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT"))); QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
@ -831,7 +831,7 @@ void EntityGUI_3DSketcherDlg::ActivateThisDialog()
// function : ValueChangedInSpinBox() // function : ValueChangedInSpinBox()
// purpose : // purpose :
//================================================================================= //=================================================================================
void EntityGUI_3DSketcherDlg::ValueChangedInSpinBox (double newValue) void EntityGUI_3DSketcherDlg::ValueChangedInSpinBox (double /*newValue*/)
{ {
GEOMBase_Helper::displayPreview(true, false, true, true, myLineWidth); GEOMBase_Helper::displayPreview(true, false, true, true, myLineWidth);
} }
@ -917,7 +917,7 @@ void EntityGUI_3DSketcherDlg::BoxChecked (bool checked)
// function : ButtonClicked() // function : ButtonClicked()
// purpose : // purpose :
//================================================================================= //=================================================================================
void EntityGUI_3DSketcherDlg::ButtonClicked (bool checked) void EntityGUI_3DSketcherDlg::ButtonClicked (bool /*checked*/)
{ {
if (GroupAngles->radioButton_1->isChecked()) if (GroupAngles->radioButton_1->isChecked())
myOrientation = OXY; myOrientation = OXY;
@ -1326,8 +1326,8 @@ void EntityGUI_3DSketcherDlg::displayPreview (GEOM::GEOM_Object_ptr object,
const bool activate, const bool activate,
const bool update, const bool update,
const double lineWidth, const double lineWidth,
const int displayMode, const int /*displayMode*/,
const int color) const int /*color*/)
{ {
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string>Values</string> <string>Values</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1,0"> <layout class="QGridLayout" name="gridLayout1" columnstretch="0,1,0">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -25,7 +25,7 @@
<property name="title"> <property name="title">
<string>Values</string> <string>Values</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="TextLabel1"> <widget class="QLabel" name="TextLabel1">
<property name="sizePolicy"> <property name="sizePolicy">

View File

@ -30,7 +30,7 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QCheckBox" name="CheckBox2"> <widget class="QCheckBox" name="CheckBox2">
<property name="text"> <property name="text">

View File

@ -407,8 +407,8 @@ void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument()
{ {
// TODO supprimer les lignes qui ne servent à rien le cas échéant // TODO supprimer les lignes qui ne servent à rien le cas échéant
SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow(); //SUIT_ViewWindow* theViewWindow = getDesktop()->activeWindow();
SOCC_Viewer* soccViewer = (SOCC_Viewer*)(theViewWindow->getViewManager()->getViewModel()); //SOCC_Viewer* soccViewer = (SOCC_Viewer*)(theViewWindow->getViewManager()->getViewModel());
if (!myEditCurrentArgument->isEnabled()) if (!myEditCurrentArgument->isEnabled())
return; return;
@ -618,9 +618,10 @@ ShapeRec_Parameters* EntityGUI_FeatureDetectorDlg::parametersChanged()
aCornersParameters->qualityLevel = (dynamic_cast<QDoubleSpinBox*>(myWidgets[QUALITY_LEVEL]))->value(); aCornersParameters->qualityLevel = (dynamic_cast<QDoubleSpinBox*>(myWidgets[QUALITY_LEVEL]))->value();
aCornersParameters->minDistance = (dynamic_cast<QDoubleSpinBox*>(myWidgets[MIN_DISTANCE]))->value(); aCornersParameters->minDistance = (dynamic_cast<QDoubleSpinBox*>(myWidgets[MIN_DISTANCE]))->value();
switch ( (dynamic_cast<QComboBox*>(myWidgets[TYPE_CRITERIA]))->currentIndex() ) { switch ( (dynamic_cast<QComboBox*>(myWidgets[TYPE_CRITERIA]))->currentIndex() ) {
case 0: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER; case 0: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER; break;
case 1: aCornersParameters->typeCriteria = CV_TERMCRIT_EPS; case 1: aCornersParameters->typeCriteria = CV_TERMCRIT_EPS; break;
case 2: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER | CV_TERMCRIT_EPS; case 2: aCornersParameters->typeCriteria = CV_TERMCRIT_ITER | CV_TERMCRIT_EPS; break;
default: break;
} }
aCornersParameters->maxIter = (dynamic_cast<QSpinBox*>(myWidgets[MAX_ITER]))->value(); aCornersParameters->maxIter = (dynamic_cast<QSpinBox*>(myWidgets[MAX_ITER]))->value();
aCornersParameters->epsilon = (dynamic_cast<QDoubleSpinBox*>(myWidgets[EPSILON]))->value(); aCornersParameters->epsilon = (dynamic_cast<QDoubleSpinBox*>(myWidgets[EPSILON]))->value();

View File

@ -106,7 +106,7 @@ private:
QList<QWidget*> myWidgets; QList<QWidget*> myWidgets;
// Output typeselection widget // Output typeselection widget
DlgRef_3Radio* myOutputGroup;; DlgRef_3Radio* myOutputGroup;
gp_Pnt myStartPnt; gp_Pnt myStartPnt;
gp_Pnt myEndPnt; gp_Pnt myEndPnt;

View File

@ -344,7 +344,7 @@ void EntityGUI_FieldDlg::Delegate::setModelData( QWidget* editor,
void EntityGUI_FieldDlg::Delegate::updateEditorGeometry( QWidget* editor, void EntityGUI_FieldDlg::Delegate::updateEditorGeometry( QWidget* editor,
const QStyleOptionViewItem& option, const QStyleOptionViewItem& option,
const QModelIndex& index ) const const QModelIndex& /*index*/ ) const
{ {
editor->setGeometry( option.rect ); editor->setGeometry( option.rect );
} }
@ -393,7 +393,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
if ( !bs->_is_nil() ) if ( !bs->_is_nil() )
{ {
GEOM::short_array_var vals = bs->GetValues(); 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 iV = 0, iR = 0; iR < nbRows; ++iR )
for ( int iC = 1; iC < nbColumns; ++iC ) for ( int iC = 1; iC < nbColumns; ++iC )
setItem( iR, iC, new CheckItem( vals[ iV++ ])); setItem( iR, iC, new CheckItem( vals[ iV++ ]));
@ -407,7 +407,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
if ( !is->_is_nil() ) if ( !is->_is_nil() )
{ {
GEOM::ListOfLong_var vals = is->GetValues(); 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 iV = 0, iR = 0; iR < nbRows; ++iR )
for ( int iC = 1; iC < nbColumns; ++iC ) for ( int iC = 1; iC < nbColumns; ++iC )
setItem( iR, iC, new IntSpinItem( vals[ iV++ ])); setItem( iR, iC, new IntSpinItem( vals[ iV++ ]));
@ -420,7 +420,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
if ( !ds->_is_nil() ) if ( !ds->_is_nil() )
{ {
GEOM::ListOfDouble_var vals = ds->GetValues(); 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 iV = 0, iR = 0; iR < nbRows; ++iR )
for ( int iC = 1; iC < nbColumns; ++iC ) for ( int iC = 1; iC < nbColumns; ++iC )
setItem( iR, iC, new DoubleSpinItem( vals[ iV++ ])); setItem( iR, iC, new DoubleSpinItem( vals[ iV++ ]));
@ -432,7 +432,7 @@ EntityGUI_FieldDlg::StepTable::StepTable (int stepID, int dataType,
if ( !ss->_is_nil() ) if ( !ss->_is_nil() )
{ {
GEOM::string_array_var vals = ss->GetValues(); 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 iV = 0, iR = 0; iR < nbRows; ++iR )
for ( int iC = 1; iC < nbColumns; ++iC ) for ( int iC = 1; iC < nbColumns; ++iC )
setItem( iR, iC, new QTableWidgetItem( vals[ iV++ ].in() )); setItem( iR, iC, new QTableWidgetItem( vals[ iV++ ].in() ));
@ -1054,7 +1054,7 @@ void EntityGUI_FieldDlg::Init()
// function : enterEvent() // function : enterEvent()
// purpose : // purpose :
//================================================================================= //=================================================================================
void EntityGUI_FieldDlg::enterEvent(QEvent* e) void EntityGUI_FieldDlg::enterEvent(QEvent*)
{ {
if (!buttonCancel()->isEnabled()) if (!buttonCancel()->isEnabled())
ActivateThisDialog(); ActivateThisDialog();
@ -1413,7 +1413,7 @@ void EntityGUI_FieldDlg::showCurStep()
if ( !myIsCreation && !myField->_is_nil() ) if ( !myIsCreation && !myField->_is_nil() )
{ {
GEOM::string_array_var compNames = myField->GetComponents(); 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(); headers << compNames[ iC ].in();
} }
else else
@ -1628,7 +1628,7 @@ void EntityGUI_FieldDlg::updateDims(int curDim)
//================================================================================= //=================================================================================
void EntityGUI_FieldDlg::activateSelection() void EntityGUI_FieldDlg::activateSelection()
{ {
bool isApply = ((QPushButton*)sender() == buttonApply()); //bool isApply = ((QPushButton*)sender() == buttonApply());
if(!isApplyAndClose()) if(!isApplyAndClose())
erasePreview(false); erasePreview(false);

View File

@ -198,7 +198,7 @@ GEOM::GEOM_IOperations_ptr EntityGUI_IsolineDlg::createOperation()
// function : isValid // function : isValid
// purpose : // purpose :
//================================================================================= //=================================================================================
bool EntityGUI_IsolineDlg::isValid (QString& msg) bool EntityGUI_IsolineDlg::isValid (QString& /*msg*/)
{ {
return myFace; return myFace;
} }
@ -278,7 +278,7 @@ void EntityGUI_IsolineDlg::SetEditFace()
// function : ValueChangedInSpinBox // function : ValueChangedInSpinBox
// purpose : // purpose :
//================================================================================= //=================================================================================
void EntityGUI_IsolineDlg::ValueChangedInSpinBox(double newValue) void EntityGUI_IsolineDlg::ValueChangedInSpinBox(double /*newValue*/)
{ {
displayPreview(true); displayPreview(true);
} }

View File

@ -62,8 +62,8 @@ EntityGUI_PolylineDlg::EntityGUI_PolylineDlg
myPlnComboBox (0), myPlnComboBox (0),
myPlnButton (0), myPlnButton (0),
myPlnSelButton (0), myPlnSelButton (0),
myWPlaneLineEdit (0),
myPolylineSelButton (0), myPolylineSelButton (0),
myWPlaneLineEdit (0),
myPolylineEdit (0), myPolylineEdit (0),
myEditCurrentArgument (0), myEditCurrentArgument (0),
myPreviewManager(0), myPreviewManager(0),
@ -293,7 +293,7 @@ GEOM::GEOM_IOperations_ptr EntityGUI_PolylineDlg::createOperation()
// function : isValid // function : isValid
// purpose : // purpose :
//================================================================================= //=================================================================================
bool EntityGUI_PolylineDlg::isValid( QString& msg ) bool EntityGUI_PolylineDlg::isValid( QString& /*msg*/ )
{ {
return true; return true;
} }
@ -530,7 +530,7 @@ void EntityGUI_PolylineDlg::SelectionIntoArgument( bool isForced )
// function : SetEditCurrentArgument() // function : SetEditCurrentArgument()
// purpose : // purpose :
//================================================================================= //=================================================================================
void EntityGUI_PolylineDlg::SetEditCurrentArgument( bool isChecked ) void EntityGUI_PolylineDlg::SetEditCurrentArgument( bool /*isChecked*/ )
{ {
if (sender() == myPlnSelButton) if (sender() == myPlnSelButton)
{ {

View File

@ -83,9 +83,9 @@ EntityGUI_SketcherDlg::EntityGUI_SketcherDlg( GeometryGUI* GUI, QWidget* parent,
bool modal, Qt::WindowFlags fl, bool modal, Qt::WindowFlags fl,
const double lineWidth ) const double lineWidth )
: QDialog( parent, fl ), : QDialog( parent, fl ),
GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
myIsAllAdded( false ), myIsAllAdded( false ),
myIsApply( false ), myIsApply( false ),
GEOMBase_Helper( dynamic_cast<SUIT_Desktop*>( parent ) ),
myGeometryGUI( GUI ), myGeometryGUI( GUI ),
myLineWidth( lineWidth ) myLineWidth( lineWidth )
{ {
@ -1873,7 +1873,7 @@ void EntityGUI_SketcherDlg::ValueChangedInSpinBox( double newValue )
LastDecimal = aPrecision; LastDecimal = aPrecision;
else // 'g' format in the QString else // 'g' format in the QString
LastDecimal = qAbs( aPrecision ) - ceil( log10(minRad) ); 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 ( Abs(vz) < minRad){
if (vz < 0.0) if (vz < 0.0)
Group3Spin->SpinBox_DZ->setValue( - minRad ); Group3Spin->SpinBox_DZ->setValue( - minRad );
@ -2492,8 +2492,8 @@ void EntityGUI_SketcherDlg::displayPreview( GEOM::GEOM_Object_ptr object,
const bool activate, const bool activate,
const bool update, const bool update,
const double lineWidth, const double lineWidth,
const int displayMode, const int /*displayMode*/,
const int color ) const int /*color*/ )
{ {
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();

View File

@ -910,7 +910,7 @@ void EntityGUI_SubShapeDlg::ClickOnOkFilter()
TopTools_IndexedMapOfShape aSubShapesMap; TopTools_IndexedMapOfShape aSubShapesMap;
TopExp::MapShapes(myShape, aSubShapesMap); TopExp::MapShapes(myShape, aSubShapesMap);
SALOME_View* view = GEOM_Displayer::GetActiveView(); //SALOME_View* view = GEOM_Displayer::GetActiveView();
getDisplayer()->Erase(myObject, false, false); getDisplayer()->Erase(myObject, false, false);
CORBA::String_var aMainEntry = myObject->GetStudyEntry(); CORBA::String_var aMainEntry = myObject->GetStudyEntry();
QString anEntryBase = aMainEntry.in(); QString anEntryBase = aMainEntry.in();

View File

@ -176,7 +176,7 @@ GEOM::GEOM_IOperations_ptr EntityGUI_SurfFromFaceDlg::createOperation()
// function : isValid // function : isValid
// purpose : // purpose :
//================================================================================= //=================================================================================
bool EntityGUI_SurfFromFaceDlg::isValid (QString& msg) bool EntityGUI_SurfFromFaceDlg::isValid (QString& /*msg*/)
{ {
return myFace; return myFace;
} }

View File

@ -33,7 +33,7 @@
#include <TDataStd_Name.hxx> #include <TDataStd_Name.hxx>
#include <TDocStd_Owner.hxx> #include <TDocStd_Owner.hxx>
IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver); IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver)
//================================================================================ //================================================================================
/*! /*!

View File

@ -100,6 +100,6 @@ public:
DEFINE_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver) DEFINE_STANDARD_RTTIEXT(GEOM_BaseDriver,TFunction_Driver)
}; };
DEFINE_STANDARD_HANDLE (GEOM_BaseDriver,TFunction_Driver); DEFINE_STANDARD_HANDLE (GEOM_BaseDriver,TFunction_Driver)
#endif #endif

View File

@ -486,4 +486,4 @@ TDF_Label GEOM_BaseObject::GetFreeLabel()
return _label.FindChild(FREE_LABEL); return _label.FindChild(FREE_LABEL);
} }
IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseObject, Standard_Transient ); IMPLEMENT_STANDARD_RTTIEXT(GEOM_BaseObject, Standard_Transient )

View File

@ -37,7 +37,7 @@
class GEOM_BaseObject; class GEOM_BaseObject;
class GEOM_Engine; class GEOM_Engine;
DEFINE_STANDARD_HANDLE( GEOM_BaseObject, Standard_Transient ); DEFINE_STANDARD_HANDLE( GEOM_BaseObject, Standard_Transient )
class GEOM_BaseObject : public Standard_Transient class GEOM_BaseObject : public Standard_Transient
{ {

View File

@ -114,7 +114,7 @@ bool ProcessFunction(Handle(GEOM_Function)& theFunction,
TCollection_AsciiString& theScript, TCollection_AsciiString& theScript,
TCollection_AsciiString& theAfterScript, TCollection_AsciiString& theAfterScript,
const TVariablesList& theVariables, const TVariablesList& theVariables,
const bool theIsPublished, const bool /*theIsPublished*/,
TDF_LabelMap& theProcessed, TDF_LabelMap& theProcessed,
std::set<TCollection_AsciiString>& theIgnoreObjs, std::set<TCollection_AsciiString>& theIgnoreObjs,
bool& theIsDumpCollected); bool& theIsDumpCollected);
@ -1560,7 +1560,7 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
//============================================================================= //=============================================================================
void ReplaceEntriesByNames (TCollection_AsciiString& theScript, void ReplaceEntriesByNames (TCollection_AsciiString& theScript,
TSting2ObjDataMap& aEntry2ObjData, TSting2ObjDataMap& aEntry2ObjData,
const bool theIsPublished, const bool /*theIsPublished*/,
TColStd_SequenceOfAsciiString& theObjListToPublish, TColStd_SequenceOfAsciiString& theObjListToPublish,
Standard_Integer& objectCounter, Standard_Integer& objectCounter,
Resource_DataMapOfAsciiStringAsciiString& aNameToEntry) Resource_DataMapOfAsciiStringAsciiString& aNameToEntry)

View File

@ -756,5 +756,5 @@ const Standard_GUID& GEOM_FieldStep::GetDataID()
return TDataStd_ExtStringArray::GetID(); return TDataStd_ExtStringArray::GetID();
} }
IMPLEMENT_STANDARD_RTTIEXT(GEOM_Field, GEOM_BaseObject ); IMPLEMENT_STANDARD_RTTIEXT(GEOM_Field, GEOM_BaseObject )
IMPLEMENT_STANDARD_RTTIEXT(GEOM_FieldStep, GEOM_BaseObject ); IMPLEMENT_STANDARD_RTTIEXT(GEOM_FieldStep, GEOM_BaseObject )

View File

@ -33,8 +33,8 @@ const int GEOM_FIELD_STEP_OBJTYPE = 53;
class GEOM_Field; class GEOM_Field;
class GEOM_FieldStep; class GEOM_FieldStep;
DEFINE_STANDARD_HANDLE( GEOM_Field, GEOM_BaseObject ); DEFINE_STANDARD_HANDLE( GEOM_Field, GEOM_BaseObject )
DEFINE_STANDARD_HANDLE( GEOM_FieldStep, GEOM_BaseObject ); DEFINE_STANDARD_HANDLE( GEOM_FieldStep, GEOM_BaseObject )
class GEOM_Field : public GEOM_BaseObject class GEOM_Field : public GEOM_BaseObject
{ {

View File

@ -977,4 +977,4 @@ void* GEOM_Function::GetCallBackData()
return reinterpret_cast<void*> ( address ); return reinterpret_cast<void*> ( address );
} }
IMPLEMENT_STANDARD_RTTIEXT(GEOM_Function, Standard_Transient ); IMPLEMENT_STANDARD_RTTIEXT(GEOM_Function, Standard_Transient )

View File

@ -37,7 +37,7 @@
#include <TopoDS_Shape.hxx> #include <TopoDS_Shape.hxx>
class GEOM_Function; class GEOM_Function;
DEFINE_STANDARD_HANDLE (GEOM_Function, Standard_Transient); DEFINE_STANDARD_HANDLE (GEOM_Function, Standard_Transient)
class GEOM_Function : public Standard_Transient class GEOM_Function : public Standard_Transient
{ {

View File

@ -296,5 +296,5 @@ GEOM_Object::GetLastFunctions( const std::list< Handle(GEOM_Object) >& theObject
return funs; return funs;
} }
IMPLEMENT_STANDARD_RTTIEXT(GEOM_Object, GEOM_BaseObject ); IMPLEMENT_STANDARD_RTTIEXT(GEOM_Object, GEOM_BaseObject )

View File

@ -37,7 +37,7 @@ class GEOM_Object;
class TFunction_Driver; class TFunction_Driver;
class GEOM_Engine; class GEOM_Engine;
DEFINE_STANDARD_HANDLE( GEOM_Object, GEOM_BaseObject ); DEFINE_STANDARD_HANDLE( GEOM_Object, GEOM_BaseObject )
class GEOM_Object : public GEOM_BaseObject class GEOM_Object : public GEOM_BaseObject
{ {

View File

@ -34,7 +34,7 @@
* Update * Update
*/ */
//============================================================================= //=============================================================================
bool GEOM_Solver::Update(TDF_LabelSequence& theSeq) bool GEOM_Solver::Update(TDF_LabelSequence& /*theSeq*/)
{ {
return false; return false;
} }
@ -44,7 +44,7 @@ bool GEOM_Solver::Update(TDF_LabelSequence& theSeq)
* UpdateObject * 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; return false;
} }

View File

@ -155,4 +155,4 @@ GetCreationInformation(std::string& theOperationName,
return true; return true;
} }
IMPLEMENT_STANDARD_RTTIEXT (GEOM_SubShapeDriver,GEOM_BaseDriver); IMPLEMENT_STANDARD_RTTIEXT (GEOM_SubShapeDriver,GEOM_BaseDriver)

View File

@ -28,7 +28,7 @@
#include <GEOM_BaseDriver.hxx> #include <GEOM_BaseDriver.hxx>
DEFINE_STANDARD_HANDLE( GEOM_SubShapeDriver, GEOM_BaseDriver ); DEFINE_STANDARD_HANDLE( GEOM_SubShapeDriver, GEOM_BaseDriver )
class GEOM_SubShapeDriver : public GEOM_BaseDriver { class GEOM_SubShapeDriver : public GEOM_BaseDriver {

View File

@ -27,7 +27,7 @@
// //
#include <GEOMAlgo_Clsf.hxx> #include <GEOMAlgo_Clsf.hxx>
IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_Clsf, GEOMAlgo_HAlgo); IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_Clsf, GEOMAlgo_HAlgo)
//======================================================================= //=======================================================================
//function : //function :

View File

@ -39,7 +39,7 @@
#include <Geom_Curve.hxx> #include <Geom_Curve.hxx>
#include <Geom_Surface.hxx> #include <Geom_Surface.hxx>
DEFINE_STANDARD_HANDLE(GEOMAlgo_Clsf, GEOMAlgo_HAlgo); DEFINE_STANDARD_HANDLE(GEOMAlgo_Clsf, GEOMAlgo_HAlgo)
//======================================================================= //=======================================================================
//class : GEOMAlgo_Clsf //class : GEOMAlgo_Clsf

View File

@ -31,7 +31,7 @@
#include <Geom_Plane.hxx> #include <Geom_Plane.hxx>
IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfQuad, GEOMAlgo_Clsf); IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfQuad, GEOMAlgo_Clsf)
//======================================================================= //=======================================================================
//function : //function :

View File

@ -32,7 +32,7 @@
#include <GEOMAlgo_SurfaceTools.hxx> #include <GEOMAlgo_SurfaceTools.hxx>
IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfSurf, GEOMAlgo_Clsf); IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_ClsfSurf, GEOMAlgo_Clsf)
//======================================================================= //=======================================================================
//function : //function :

View File

@ -344,7 +344,7 @@ void GEOMAlgo_FinderShapeOn2::ProcessEdges()
// //
Standard_Boolean bIsConformState, bIsToBreak; Standard_Boolean bIsConformState, bIsToBreak;
Standard_Integer i, aNb, iCnt, iErr; 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; TopTools_IndexedMapOfShape aM;
TopExp_Explorer aExp; TopExp_Explorer aExp;
GEOMAlgo_ListIteratorOfListOfPnt aIt; GEOMAlgo_ListIteratorOfListOfPnt aIt;
@ -378,7 +378,7 @@ void GEOMAlgo_FinderShapeOn2::ProcessEdges()
} }
// //
if (BRep_Tool::Degenerated(aE)) { 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; continue;
} }
// //

View File

@ -260,7 +260,7 @@ gp_Vec GEOMAlgo_GetInPlaceAPI::GetNormal
return du ^ dv; return du ^ dv;
} catch (Standard_Failure ) { } catch (Standard_Failure&) {
} }
return defaultNorm; return defaultNorm;
} }

View File

@ -27,7 +27,7 @@
// //
#include <GEOMAlgo_HAlgo.hxx> #include <GEOMAlgo_HAlgo.hxx>
IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_HAlgo, Standard_Transient); IMPLEMENT_STANDARD_RTTIEXT(GEOMAlgo_HAlgo, Standard_Transient)
//======================================================================= //=======================================================================
// function: // function:

View File

@ -34,7 +34,7 @@
#include <Standard_Integer.hxx> #include <Standard_Integer.hxx>
#include <Standard_Transient.hxx> #include <Standard_Transient.hxx>
DEFINE_STANDARD_HANDLE(GEOMAlgo_HAlgo, Standard_Transient); DEFINE_STANDARD_HANDLE(GEOMAlgo_HAlgo, Standard_Transient)
//======================================================================= //=======================================================================
//class : GEOMAlgo_HAlgo //class : GEOMAlgo_HAlgo

View File

@ -300,7 +300,7 @@ void GEOMAlgo_ShellSolid::Perform()
}//for (i=iBeg; i<=iEnd; ++i) { }//for (i=iBeg; i<=iEnd; ++i) {
}// try }// try
catch (Standard_Failure) { catch (Standard_Failure&) {
myErrorStatus=12; myErrorStatus=12;
} }
} }

View File

@ -91,7 +91,7 @@ void GEOMAlgo_SolidSolid::Perform()
myRank=2; myRank=2;
BuildResult(); BuildResult();
} }
catch (Standard_Failure) { catch (Standard_Failure&) {
myErrorStatus=12; myErrorStatus=12;
} }
} }

Some files were not shown because too many files have changed in this diff Show More