dbertoni 01/08/15 08:09:31
Modified: c/src/XalanDOM XalanDOMString.cpp
Log:
Removed cast that was causing problems with certain versions of gcc.
Revision Changes Path
1.15 +2 -2 xml-xalan/c/src/XalanDOM/XalanDOMString.cpp
Index: XalanDOMString.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanDOMString.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- XalanDOMString.cpp 2001/08/10 17:51:42 1.14
+++ XalanDOMString.cpp 2001/08/15 15:09:31 1.15
@@ -140,7 +140,7 @@
{
if (theCount != 0)
{
- XalanDOMCharVectorType(real_size_type(theCount) + 1,
theChar).swap(m_data);
+ XalanDOMCharVectorType(theCount + 1, theChar).swap(m_data);
// Null-terminate it...
m_data.back() = 0;
@@ -168,7 +168,7 @@
{
// If the string is of 0 length, resize but add an
// extra byte for the terminating byte.
- m_data.resize(real_size_type(theCount) + 1, theChar);
+ m_data.resize(real_size_type(theCount + 1), theChar);
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]