From: srn Date: Fri, 2 Nov 2007 08:51:46 +0000 (+0000) Subject: Optimized method GetSObject X-Git-Tag: V4_1_0a3~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e43e915a6d8ce1953876deef68e660d841ebfe87;p=modules%2Fkernel.git Optimized method GetSObject --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index ad9c0c1ef..46bee10fb 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -1072,16 +1072,7 @@ SALOMEDSImpl_SObject SALOMEDSImpl_Study::GetSObject(const string& theEntry) //============================================================================ SALOMEDSImpl_SObject SALOMEDSImpl_Study::GetSObject(const DF_Label& theLabel) { - SALOMEDSImpl_SObject aSO; - string anEntry = theLabel.Entry(); - if(_mapOfSO.find(anEntry) != _mapOfSO.end()) - aSO = _mapOfSO[anEntry]; - else { - aSO = SALOMEDSImpl_SObject(theLabel); - _mapOfSO[anEntry] = aSO; - } - - return aSO; + return SALOMEDSImpl_SObject(theLabel); } //============================================================================