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

Diff for /pegasus/src/Pegasus/Common/Buffer.cpp between version 1.15.8.2 and 1.16

version 1.15.8.2, 2013/07/20 18:32:39 version 1.16, 2011/02/23 09:41:09
Line 32 
Line 32 
 #include <cstring> #include <cstring>
 #include "Buffer.h" #include "Buffer.h"
 #include "Pegasus/Common/InternalException.h" #include "Pegasus/Common/InternalException.h"
 #include "Pegasus/Common/Pegasus_inl.h"  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 87 
Line 86 
 static inline BufferRep* _reallocate(BufferRep* rep, Uint32 cap) static inline BufferRep* _reallocate(BufferRep* rep, Uint32 cap)
 { {
     // Allocate an extra byte for null-termination performed by getData().     // Allocate an extra byte for null-termination performed by getData().
     rep = (BufferRep*)peg_inln_realloc(rep, sizeof(BufferRep) + cap + 1);      rep = (BufferRep*)realloc(rep, sizeof(BufferRep) + cap + 1);
  
       if (!rep)
       {
           throw PEGASUS_STD(bad_alloc)();
       }
     rep->cap = cap;     rep->cap = cap;
     return rep;     return rep;
 } }


Legend:
Removed from v.1.15.8.2  
changed lines
  Added in v.1.16

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2