(file) Return to OperationContext.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/OperationContext.cpp between version 1.31 and 1.32

version 1.31, 2005/03/29 23:43:38 version 1.32, 2005/11/18 21:15:34
Line 100 
Line 100 
 const OperationContext::Container & OperationContext::get( const OperationContext::Container & OperationContext::get(
     const String& containerName) const     const String& containerName) const
 { {
     for(Uint32 i = 0, n = _rep->containers.size(); i < n; i++)      Uint32 size = _rep->containers.size();
     {      Container** data = (Container**)_rep->containers.getData();
         if(containerName == _rep->containers[i]->getName())  
         {  
             Container * p = _rep->containers[i];  
  
             return(*p);      for (; size--; data++)
         }          if (data[0]->getName() == containerName)
     }              return *(data[0]);
  
         //l10n      static Exception _exception(MessageLoaderParms(
         MessageLoaderParms parms("Common.OperationContext.OBJECT_NOT_FOUND",          "Common.OperationContext.OBJECT_NOT_FOUND", "object not found"));
                                                          "object not found");  
     throw Exception(parms);      throw Exception(_exception);
     //throw Exception("object not found");  
 } }
  
 void OperationContext::set(const OperationContext::Container & container) void OperationContext::set(const OperationContext::Container & container)


Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2