From 1f8908ba709a6dbd983ffa9fccbce69f084eafe2 Mon Sep 17 00:00:00 2001 From: asv Date: Mon, 24 Jan 2005 13:12:34 +0000 Subject: [PATCH] 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. --- src/GraphBase/DataFlowBase_Graph.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ; } -- 2.39.2