0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation

This commit is contained in:
kgv
2017-04-08 14:50:24 +03:00
committed by bugmaster
parent 14c4193d11
commit c48e2889cd
68 changed files with 1691 additions and 1060 deletions
+8 -4
View File
@@ -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);
+17 -6
View File
@@ -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,"?");
+10 -2
View File
@@ -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);