0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation
[occt.git] / src / RWStepAP214 / RWStepAP214.cxx
index af29097..6693363 100644 (file)
 #include <StepAP214_Protocol.hxx>
 #include <StepData_WriterLib.hxx>
 
-static int init = 0;
+static int THE_RWStepAP214_init = 0;
 
 void RWStepAP214::Init()
-       {
-         if (init) return;    init = 1;
-         RWHeaderSection::Init();
-         Handle(StepAP214_Protocol) proto = StepAP214::Protocol();
-         Interface_GeneralLib::SetGlobal (new RWStepAP214_GeneralModule,proto);
-         Interface_ReaderLib::SetGlobal  (new RWStepAP214_ReadWriteModule,proto);
-         StepData_WriterLib::SetGlobal   (new RWStepAP214_ReadWriteModule,proto);
-       }
+{
+  if (THE_RWStepAP214_init)
+  {
+    return;
+  }
+  THE_RWStepAP214_init = 1;
+  RWHeaderSection::Init();
+  Handle(StepAP214_Protocol) proto = StepAP214::Protocol();
+  Interface_GeneralLib::SetGlobal (new RWStepAP214_GeneralModule,proto);
+  Interface_ReaderLib::SetGlobal  (new RWStepAP214_ReadWriteModule,proto);
+  StepData_WriterLib::SetGlobal   (new RWStepAP214_ReadWriteModule,proto);
+}