1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0029021: Coding Rules - eliminate GCC warnings in Qt sample

This commit is contained in:
kgv
2017-08-19 14:40:40 +03:00
committed by bugmaster
parent 41f97958c0
commit aa17dac878
6 changed files with 57 additions and 89 deletions

View File

@@ -245,30 +245,19 @@ bool Translate::exportModel( const int format, const Handle(AIS_InteractiveConte
bool Translate::exportModel( const int format, const QString& file, const Handle(TopTools_HSequenceOfShape)& shapes )
{
bool status;
try {
switch ( format )
{
case FormatBREP:
status = exportBREP( file, shapes );
break;
case FormatIGES:
status = exportIGES( file, shapes );
break;
case FormatSTEP:
status = exportSTEP( file, shapes );
break;
case FormatSTL:
status = exportSTL( file, shapes );
break;
case FormatVRML:
status = exportVRML( file, shapes );
break;
case FormatBREP: return exportBREP( file, shapes );
case FormatIGES: return exportIGES( file, shapes );
case FormatSTEP: return exportSTEP( file, shapes );
case FormatSTL: return exportSTL ( file, shapes );
case FormatVRML: return exportVRML( file, shapes );
}
} catch ( Standard_Failure ) {
status = false;
//
}
return status;
return false;
}
Handle(TopTools_HSequenceOfShape) Translate::getShapes( const Handle(AIS_InteractiveContext)& ic )
@@ -522,6 +511,9 @@ bool Translate::exportSTEP( const QString& file, const Handle(TopTools_HSequence
case IFSelect_RetVoid:
myInfo = QObject::tr( "INF_NOTHING_ERROR" );
break;
case IFSelect_RetStop:
case IFSelect_RetDone:
break;
}
return status == IFSelect_RetDone;
}