dbertoni 00/06/04 17:50:35
Modified: c/src/ICUBridge ICUXalanNumberFormatProxy.cpp
Log:
Fixes for Xerces DOMString changes.
Revision Changes Path
1.2 +5 -7 xml-xalan/c/src/ICUBridge/ICUXalanNumberFormatProxy.cpp
Index: ICUXalanNumberFormatProxy.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/ICUBridge/ICUXalanNumberFormatProxy.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ICUXalanNumberFormatProxy.cpp 2000/05/08 17:13:13 1.1
+++ ICUXalanNumberFormatProxy.cpp 2000/06/05 00:50:35 1.2
@@ -96,20 +96,18 @@
using std::vector;
#endif
- vector<XalanDOMChar> theBuffer(theString.length(), ' ');
+ vector<XalanDOMChar> theBuffer;
- XalanDOMString theResult(&theBuffer[0],
theBuffer.size());
+ const int32_t theLength = theString.length();
- const unsigned int theLength = length(theResult);
+ theBuffer.reserve(theLength);
- XalanDOMChar* thePointer = toCharArray(theResult);
-
for (unsigned int i = 0; i < theLength; ++i)
{
- thePointer[i] = theString[i];
+ theBuffer.push_back(theString[i]);
}
- return theResult;
+ return XalanDOMString(&theBuffer[0], theBuffer.size());
}