mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-31 07:17:46 +08:00
0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation
This commit is contained in:
@@ -2438,12 +2438,16 @@ Handle(IFSelect_Dispatch) IFSelect_Functions::GiveDispatch
|
||||
// #### INITIALISATIONS ####
|
||||
// #########################################
|
||||
|
||||
static int initactor = 0;
|
||||
static int THE_IFSelect_Functions_initactor = 0;
|
||||
|
||||
|
||||
void IFSelect_Functions::Init ()
|
||||
void IFSelect_Functions::Init()
|
||||
{
|
||||
if (initactor) return; initactor = 1;
|
||||
if (THE_IFSelect_Functions_initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
THE_IFSelect_Functions_initactor = 1;
|
||||
IFSelect_Act::SetGroup("DE: General");
|
||||
IFSelect_Act::AddFunc("xstatus","Lists XSTEP Status : Version, System Name ...",funstatus);
|
||||
IFSelect_Act::AddFunc("handler","Toggle status catch Handler Error of the session",fun1);
|
||||
|
||||
@@ -36,19 +36,30 @@ IMPLEMENT_STANDARD_RTTIEXT(IFSelect_SessionPilot,IFSelect_Activator)
|
||||
#define MAXWORDS 200
|
||||
#define MAXCARS 1000
|
||||
|
||||
static int initactor = 0;
|
||||
static int THE_IFSelect_SessionPilot_initactor = 0;
|
||||
static TCollection_AsciiString nulword;
|
||||
|
||||
//#define DEBUG_TRACE
|
||||
|
||||
// Nb Maxi de words : cf thewords et method SetCommandLine
|
||||
|
||||
IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
: theprompt (prompt) , thewords (0,MAXWORDS-1) , thewordeb (0,MAXWORDS-1)
|
||||
IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
: theprompt (prompt),
|
||||
thewords (0, MAXWORDS - 1),
|
||||
thewordeb (0, MAXWORDS - 1)
|
||||
{
|
||||
if (theprompt.Length() == 0) theprompt.AssignCat ("Test-XSTEP>");
|
||||
therecord = Standard_False; thenbwords = 0;
|
||||
if (initactor) return; initactor = 1;
|
||||
if (theprompt.Length() == 0)
|
||||
{
|
||||
theprompt.AssignCat ("Test-XSTEP>");
|
||||
}
|
||||
therecord = Standard_False;
|
||||
thenbwords = 0;
|
||||
if (THE_IFSelect_SessionPilot_initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
THE_IFSelect_SessionPilot_initactor = 1;
|
||||
Add (1,"x");
|
||||
Add (1,"exit");
|
||||
Add (2,"?");
|
||||
|
||||
@@ -3055,7 +3055,14 @@ Handle(IFSelect_Selection) IFSelect_WorkSession::GiveSelection
|
||||
}
|
||||
|
||||
Handle(IFSelect_Selection) sel;
|
||||
if (np >= 0) nomsel[np] = 0; if (nf >= 0) nomsel[nf] = '\0';
|
||||
if (np >= 0)
|
||||
{
|
||||
nomsel[np] = 0;
|
||||
}
|
||||
if (nf >= 0)
|
||||
{
|
||||
nomsel[nf] = '\0';
|
||||
}
|
||||
Handle(Standard_Transient) item = NamedItem(nomsel);
|
||||
|
||||
// Parentheses ? essayer Signature (plus tard : Selection parametree)
|
||||
@@ -3171,7 +3178,8 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::GiveListFromList
|
||||
if (selname[i] == ' ') continue;
|
||||
if (selname[i] == ',' || selname[i] == ')') {
|
||||
entid[j] = '\0';
|
||||
if (j == 0) continue; j = 0;
|
||||
if (j == 0) continue;
|
||||
j = 0;
|
||||
num = NumberFromLabel (entid);
|
||||
if (num <= 0 || !numap.Add (num)) continue;
|
||||
Handle(Standard_Transient) anent = StartingEntity(num);
|
||||
|
||||
Reference in New Issue
Block a user