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

Diff for /pegasus/src/Pegasus/Common/String.cpp between version 1.119 and 1.119.2.1

version 1.119, 2006/01/30 16:17:08 version 1.119.2.1, 2006/05/12 18:28:20
Line 166 
Line 166 
 { {
 #ifndef PEGASUS_STRING_NO_THROW #ifndef PEGASUS_STRING_NO_THROW
  
     if (x > 0x0FFFFFFF)      // Check for potential overflow in x
         throw PEGASUS_STD(bad_alloc)();      PEGASUS_CHECK_CAPACITY_OVERFLOW(x);
  
 #endif #endif
  
Line 545 
Line 545 
 { {
 #ifndef PEGASUS_STRING_NO_THROW #ifndef PEGASUS_STRING_NO_THROW
  
     // Any string bigger than this is seriously suspect.      // Check for potential overflow in cap
     if (cap > 0x0FFFFFFF)      PEGASUS_CHECK_CAPACITY_OVERFLOW(cap);
         throw PEGASUS_STD(bad_alloc)();  
  
 #endif #endif
  


Legend:
Removed from v.1.119  
changed lines
  Added in v.1.119.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2