Salome HOME
FindContainer() method does not exist any more. FindOrLoad_Component() starts the...
authorasv <asv@opencascade.com>
Mon, 24 Jan 2005 13:12:34 +0000 (13:12 +0000)
committerasv <asv@opencascade.com>
Mon, 24 Jan 2005 13:12:34 +0000 (13:12 +0000)
src/GraphBase/DataFlowBase_Graph.cxx

index d72d31dcac7f196c6ba93afa57b78b051e13fe7d..169fc9ab5d6ce63315c126fefdf90d2ad5cb79ec 100644 (file)
@@ -730,7 +730,7 @@ bool GraphBase::Graph::RemoveNode( const char* aNodeName ) {
           int k ;
           for ( k = anOutPort->InPortsSize() - 1 ; k >= 0  ; k-- ) {
             GraphBase::InPort * anInPort = anOutPort->ChangeInPorts( k ) ;
-            if ( strcmp( anInPort->NodeName() , aNode->Name() ) == NULL ) {
+            if ( strcmp( anInPort->NodeName() , aNode->Name() ) == 0 ) {
 // InPort of the EndSwitchNode
               cdebug << "       to InPort" << j << ". " << anInPort->NodeName() << "( "
                      << anInPort->PortName() << ") "
@@ -2807,6 +2807,10 @@ bool GraphBase::Graph::StartComponent(const int aThread ,
                << " " << ComponentName << " ERROR" << endl;
     return 0 ;
   }
+  /* asv : 24.01.05 : FindContainer() method does not exist any more.  FindOrLoad_Component()
+                      starts the container for us.  If it fails to start the container, then it
+                      returns nil component.  We don't need to check for if the container was 
+                     successfully started..
   else {
     myContainer = LCC.FindContainer( aComputerContainer );
     if ( CORBA::is_nil( myContainer ) ) {
@@ -2817,6 +2821,7 @@ bool GraphBase::Graph::StartComponent(const int aThread ,
       return 0 ;
     }
   }
+  */
   cdebug_out << aThread << " GraphBase::Graph::StartComponent " << RetVal << endl;
   return RetVal ;
 }