]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
simplification of findnext
authorsecher <secher>
Wed, 16 May 2007 14:29:52 +0000 (14:29 +0000)
committersecher <secher>
Wed, 16 May 2007 14:29:52 +0000 (14:29 +0000)
src/ResourcesManager/SALOME_LoadRateManager.cxx

index 5168925062ce01e1d0516683a56e95355686865c..42f08df99f9e8dd16fe820ce561404c22053c22e 100644 (file)
@@ -47,15 +47,7 @@ string SALOME_LoadRateManager::FindNext(const Engines::MachineList& hosts,MapOfP
 
   ns->Change_Directory("/Containers");
   vector<string> vec = ns->list_directory_recurs();
-  list<string> lstCont;
   for(vector<string>::iterator iter = vec.begin();iter!=vec.end();iter++){
-    CORBA::Object_var obj=ns->Resolve((*iter).c_str());
-    Engines::Container_var cont=Engines::Container::_narrow(obj);
-    if(!CORBA::is_nil(cont)){
-      lstCont.push_back((*iter));
-    }
-  }
-  for(list<string>::iterator iter=lstCont.begin();iter!=lstCont.end();iter++){
     CORBA::Object_var obj=ns->Resolve((*iter).c_str());
     Engines::Container_var cont=Engines::Container::_narrow(obj);
     if(!CORBA::is_nil(cont)){