mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-21 07:22:16 +08:00
0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation
This commit is contained in:
@@ -702,17 +702,21 @@ static IFSelect_ReturnStatus XSControl_twrite
|
||||
// #### ####
|
||||
// ######################################################################
|
||||
|
||||
static int initactor = 0;
|
||||
|
||||
static int THE_XSControl_FuncShape_initactor = 0;
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void XSControl_FuncShape::Init ()
|
||||
{
|
||||
if (initactor) return; initactor = 1;
|
||||
if (THE_XSControl_FuncShape_initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
THE_XSControl_FuncShape_initactor = 1;
|
||||
|
||||
IFSelect_Act::SetGroup("DE: General");
|
||||
|
||||
@@ -781,7 +785,11 @@ Standard_Integer XSControl_FuncShape::MoreShapes
|
||||
// liste
|
||||
if (n1 <= n2 && n1 > 0) {
|
||||
char nom[50], nomsh[60]; Standard_Integer nbsh = 0;
|
||||
for (i = 0; i < paro; i ++) nom[i]=name[i]; nom[paro] = '\0';
|
||||
for (i = 0; i < paro; i ++)
|
||||
{
|
||||
nom[i]=name[i];
|
||||
}
|
||||
nom[paro] = '\0';
|
||||
sout<<"Shapes DRAW named : "<<nom<<n1<<" to "<<nom<<n2;
|
||||
for (i = n1; i <= n2 ; i ++) {
|
||||
const char* nomshh = &nomsh[0];
|
||||
|
||||
@@ -335,10 +335,10 @@ static IFSelect_ReturnStatus XSControl_trbegin(const Handle(IFSelect_SessionPilo
|
||||
if (init) {
|
||||
XSControl::Session(pilot)->InitTransferReader (0);
|
||||
TR = XSControl::Session(pilot)->TransferReader();
|
||||
if (TR.IsNull()) {
|
||||
if (TR.IsNull()) {
|
||||
Handle(Message_Messenger) sout = Message::DefaultMessenger();
|
||||
sout<<" init not done or failed"<<endl;
|
||||
return IFSelect_RetError;
|
||||
sout<<" init not done or failed"<<endl;
|
||||
return IFSelect_RetError;
|
||||
}
|
||||
}
|
||||
TR->BeginTransfer();
|
||||
@@ -462,16 +462,21 @@ static IFSelect_ReturnStatus XSControl_settransfert(const Handle(IFSelect_Sessio
|
||||
|
||||
|
||||
|
||||
static int initactor = 0;
|
||||
static int THE_XSControl_Functions_initactor = 0;
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void XSControl_Functions::Init ()
|
||||
{
|
||||
if (initactor) return; initactor = 1;
|
||||
if (THE_XSControl_Functions_initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
THE_XSControl_Functions_initactor = 1;
|
||||
IFSelect_Act::SetGroup("DE: General");
|
||||
|
||||
IFSelect_Act::AddFunc ("xinit","[norm:string to change norme] reinitialises according to the norm",XSControl_xinit);
|
||||
|
||||
@@ -205,7 +205,11 @@ Standard_Boolean XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
|
||||
}
|
||||
|
||||
S<<"Transfer Write item n0."<<ne<<" of "<<max;
|
||||
if (nr > 0) S<<" ** Transfer Root n0."<<ne; S<<endl;
|
||||
if (nr > 0)
|
||||
{
|
||||
S<<" ** Transfer Root n0."<<ne;
|
||||
}
|
||||
S<<endl;
|
||||
ent = FP->FindTransient(finder);
|
||||
S<<" -> Type "<<finder->DynamicType()->Name()<<endl;
|
||||
FP->StartTrace (binder,finder,0,0); // pb sout/S
|
||||
@@ -240,7 +244,11 @@ Standard_Boolean XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
|
||||
}
|
||||
|
||||
S<<"Transfer Read item n0."<<ne<<" of "<<max;
|
||||
if (nr > 0) S<<" ** Transfer Root n0."<<ne; S<<endl;
|
||||
if (nr > 0)
|
||||
{
|
||||
S<<" ** Transfer Root n0."<<ne;
|
||||
}
|
||||
S<<endl;
|
||||
if (!model.IsNull()) { S<<" In Model, Entity "; model->Print(ent,S); }
|
||||
binder = TP->MapItem (ne);
|
||||
S<<endl;
|
||||
|
||||
Reference in New Issue
Block a user