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

Diff for /pegasus/src/Pegasus/Common/ArrayImpl.h between version 1.31 and 1.32

version 1.31, 2006/01/30 16:16:45 version 1.32, 2006/05/10 19:40:38
Line 77 
Line 77 
 { {
     _rep = ArrayRep<PEGASUS_ARRAY_T>::alloc(size);     _rep = ArrayRep<PEGASUS_ARRAY_T>::alloc(size);
  
     if (!_rep)      // ArrayRep<PEGASUS_ARRAY_T>::alloc() throws a bad_alloc exception if
     {      // storage could not be obtained.
         throw NullPointer();  
     }  
  
     InitializeRaw(Array_data, size);     InitializeRaw(Array_data, size);
 } }
Line 92 
Line 90 
 { {
     _rep = ArrayRep<PEGASUS_ARRAY_T>::alloc(size);     _rep = ArrayRep<PEGASUS_ARRAY_T>::alloc(size);
  
     if (!_rep)      // ArrayRep<PEGASUS_ARRAY_T>::alloc() throws a bad_alloc exception if
     {      // storage could not be obtained.
         throw NullPointer();  
     }  
  
     PEGASUS_ARRAY_T* data = Array_data;     PEGASUS_ARRAY_T* data = Array_data;
  
Line 114 
Line 110 
 { {
     _rep = ArrayRep<PEGASUS_ARRAY_T>::alloc(size);     _rep = ArrayRep<PEGASUS_ARRAY_T>::alloc(size);
  
     if (!_rep)      // ArrayRep<PEGASUS_ARRAY_T>::alloc() throws a bad_alloc exception if
     {      // storage could not be obtained.
         throw NullPointer();  
     }  
  
     CopyToRaw(Array_data, items, size);     CopyToRaw(Array_data, items, size);
 } }
Line 176 
Line 170 
         ArrayRep<PEGASUS_ARRAY_T>* rep =         ArrayRep<PEGASUS_ARRAY_T>* rep =
             ArrayRep<PEGASUS_ARRAY_T>::alloc(capacity);             ArrayRep<PEGASUS_ARRAY_T>::alloc(capacity);
  
         if (!rep)          // ArrayRep<PEGASUS_ARRAY_T>::alloc() throws a bad_alloc exception if
             return;          // storage could not be obtained.
  
         rep->size = Array_size;         rep->size = Array_size;
  


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