From: asv Date: Mon, 24 Jan 2005 13:12:34 +0000 (+0000) Subject: FindContainer() method does not exist any more. FindOrLoad_Component() starts the... X-Git-Tag: V2_2_0b2~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f8908ba709a6dbd983ffa9fccbce69f084eafe2;p=modules%2Fsuperv.git 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. --- diff --git a/src/GraphBase/DataFlowBase_Graph.cxx b/src/GraphBase/DataFlowBase_Graph.cxx index d72d31d..169fc9a 100644 --- a/src/GraphBase/DataFlowBase_Graph.cxx +++ b/src/GraphBase/DataFlowBase_Graph.cxx @@ -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 ; }