mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation
This commit is contained in:
@@ -34,13 +34,17 @@
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(IGESGraph_Protocol,IGESData_Protocol)
|
||||
|
||||
static int deja = 0;
|
||||
static int THE_IGESGraph_Protocol_deja = 0;
|
||||
static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
|
||||
atype07,atype08,atype09,atype10,atype11,atype12,atype13,atype14;
|
||||
|
||||
IGESGraph_Protocol::IGESGraph_Protocol ()
|
||||
IGESGraph_Protocol::IGESGraph_Protocol()
|
||||
{
|
||||
if (deja) return; deja = 1;
|
||||
if (THE_IGESGraph_Protocol_deja)
|
||||
{
|
||||
return;
|
||||
}
|
||||
THE_IGESGraph_Protocol_deja = 1;
|
||||
atype01 = STANDARD_TYPE(IGESGraph_Color);
|
||||
atype02 = STANDARD_TYPE(IGESGraph_DefinitionLevel);
|
||||
atype03 = STANDARD_TYPE(IGESGraph_DrawingSize);
|
||||
|
@@ -100,28 +100,70 @@ Standard_Boolean IGESGraph_ToolDrawingUnits::OwnCorrect
|
||||
Standard_CString unm = "";
|
||||
if (!ent->Unit().IsNull()) unm = ent->Unit()->ToCString();
|
||||
switch (unf) {
|
||||
case 1 : if ((strcmp(unm,"IN") == 0) || (strcmp(unm,"INCH") == 0))
|
||||
name = new TCollection_HAsciiString ("IN"); break;
|
||||
case 2 : if (strcmp(unm,"MM") == 0)
|
||||
name = new TCollection_HAsciiString ("MM"); break;
|
||||
case 3 : break; // nom libre
|
||||
case 4 : if (strcmp(unm,"FT") == 0)
|
||||
name = new TCollection_HAsciiString ("FT"); break;
|
||||
case 5 : if (strcmp(unm,"MI") == 0)
|
||||
name = new TCollection_HAsciiString ("MI"); break;
|
||||
case 6 : if (strcmp(unm,"M") == 0)
|
||||
name = new TCollection_HAsciiString ("M"); break;
|
||||
case 7 : if (strcmp(unm,"KM") == 0)
|
||||
name = new TCollection_HAsciiString ("KM"); break;
|
||||
case 8 : if (strcmp(unm,"MIL") == 0)
|
||||
name = new TCollection_HAsciiString ("MIL"); break;
|
||||
case 9 : if (strcmp(unm,"UM") == 0)
|
||||
name = new TCollection_HAsciiString ("UM"); break;
|
||||
case 10 : if (strcmp(unm,"CM") == 0)
|
||||
name = new TCollection_HAsciiString ("CM"); break;
|
||||
case 11 : if (strcmp(unm,"UIN") == 0)
|
||||
name = new TCollection_HAsciiString ("UIN"); break;
|
||||
default : break; // on ne peut rien faire ... ?
|
||||
case 1:
|
||||
if ((strcmp(unm,"IN") == 0) || (strcmp(unm,"INCH") == 0))
|
||||
{
|
||||
name = new TCollection_HAsciiString ("IN");
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (strcmp(unm,"MM") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("MM");
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
break; // nom libre
|
||||
case 4:
|
||||
if (strcmp(unm,"FT") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("FT");
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
if (strcmp(unm,"MI") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("MI");
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (strcmp(unm,"M") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("M");
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if (strcmp(unm,"KM") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("KM");
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
if (strcmp(unm,"MIL") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("MIL");
|
||||
}
|
||||
break;
|
||||
case 9:
|
||||
if (strcmp(unm,"UM") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("UM");
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
if (strcmp(unm,"CM") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("CM");
|
||||
}
|
||||
break;
|
||||
case 11:
|
||||
if (strcmp(unm,"UIN") == 0)
|
||||
{
|
||||
name = new TCollection_HAsciiString ("UIN");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break; // on ne peut rien faire ... ?
|
||||
}
|
||||
|
||||
res |= (!name.IsNull());
|
||||
|
Reference in New Issue
Block a user