Salome HOME
Updated copyright comment
[samples/component.git] / src / AddComponent / Adder_Impl.cxx
index b5bc5fc73cd2b3e84f83546b3edfd0708cf0cdf2..82c69e611b526e64f6b9fc04b97a33e236e2c79b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -49,12 +49,12 @@ Adder_Impl::Adder_Impl( CORBA::ORB_ptr orb ,
                        const char * instanceName ,
                         const char * interfaceName , 
                        const char * graphName ,
-                        const char * nodeName ) :
-  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+                        const char * nodeName, bool withRegistry ) :
+  Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
   Names( graphName , nodeName ) ;
   MESSAGE("Adder_Impl::Adder_Impl activate object instanceName("
           << instanceName << ") interfaceName(" << interfaceName << ") --> "
-          << hex << (void *) this << dec )
+          << hex << (void *) this << dec );
   beginService( "Adder_Impl::Adder_Impl" );
   _thisObj = this ;
   _id = _poa->activate_object(_thisObj);
@@ -104,7 +104,7 @@ CORBA::Double Adder_Impl::Add( CORBA::Double x , CORBA::Double y , CORBA::Double
   Sleep(S*1000);
 #endif
   MESSAGE( "Adder_Impl::Add( " <<  x << " , " << y << " , " << z
-       << " ) returns " << -(x - y) << " after " << S << " seconds" )
+       << " ) returns " << -(x - y) << " after " << S << " seconds" );
   LastAddition = z ;
   endService( " Adder_Impl::Add"  );
   return -(x - y) ;
@@ -135,7 +135,7 @@ CORBA::Double Adder_Impl::AddAndCompare( CORBA::Double x , CORBA::Double y ,
   Sleep(S*1000);
 #endif
   MESSAGE( "Adder_Impl::AddAndCompare( " <<  x << " , " << y << " , " << z
-       << " ) returns " << -(x - y) << " after " << S << " seconds" )
+       << " ) returns " << -(x - y) << " after " << S << " seconds" );
   LastAddition = z ;
   double ValFunc ;
   sendMessage(NOTIF_TRACE, "Adder_Impl::AddAndCompare will call anOtherAdder->LastValue()");