dbertoni 01/02/08 17:54:27
Modified: c/src/PlatformSupport XalanOutputStream.cpp
Log:
Removed obsolete typedef and added assert.
Revision Changes Path
1.9 +5 -6 xml-xalan/c/src/PlatformSupport/XalanOutputStream.cpp
Index: XalanOutputStream.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanOutputStream.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- XalanOutputStream.cpp 2001/02/08 21:39:11 1.8
+++ XalanOutputStream.cpp 2001/02/09 01:54:26 1.9
@@ -374,19 +374,18 @@
m_encoding = theEncoding;
- typedef XalanTranscodingServices::XalanXMLByteVectorType
XalanXMLByteVectorType;
-
const XalanTranscodingServices::XalanXMLByte* theProlog =
XalanTranscodingServices::getStreamProlog(theEncoding);
+ assert(theProlog != 0);
- const unsigned int theSize =
XalanTranscodingServices::length(theProlog);
+ const unsigned int theLength =
XalanTranscodingServices::length(theProlog);
- if (theSize > 0)
+ if (theLength > 0)
{
#if defined(XALAN_OLD_STYLE_CASTS)
- write((const char*)theProlog, theSize);
+ write((const char*)theProlog, theLength);
#else
- write(reinterpret_cast<const char*>(theProlog), theSize);
+ write(reinterpret_cast<const char*>(theProlog), theLength);
#endif
}
}