peiyongz 2002/08/13 10:07:43 Modified: c/src/xercesc/framework XMLBuffer.cpp Log: using 2 instead of 1.25 to expand capacity Revision Changes Path 1.2 +4 -1 xml-xerces/c/src/xercesc/framework/XMLBuffer.cpp Index: XMLBuffer.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLBuffer.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- XMLBuffer.cpp 1 Feb 2002 22:21:50 -0000 1.1 +++ XMLBuffer.cpp 13 Aug 2002 17:07:43 -0000 1.2 @@ -56,8 +56,11 @@ /** * $Log$ - * Revision 1.1 2002/02/01 22:21:50 peiyongz - * Initial revision + * Revision 1.2 2002/08/13 17:07:43 peiyongz + * using 2 instead of 1.25 to expand capacity + * + * Revision 1.1.1.1 2002/02/01 22:21:50 peiyongz + * sane_include * * Revision 1.5 2000/08/17 00:04:50 andyh * Fix error in growing of XMLBuffer from within ensureCapacity() @@ -142,7 +145,7 @@ return; // Oops, not enough room. Calc new capacity and allocate new buffer - const unsigned int newCap = (unsigned int)((fIndex + extraNeeded) * 1.25); + const unsigned int newCap = (unsigned int)((fIndex + extraNeeded) * 2); XMLCh* newBuf = new XMLCh[newCap+1]; // Copy over the old stuff
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]