You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/05/28 22:24:15 UTC
cvs commit: xml-xerces/c/samples/SAX2Print SAX2PrintHandlers.cpp
tng 02/05/28 13:24:15
Modified: c/samples/SAX2Print SAX2PrintHandlers.cpp
Log:
XMLUni::fgEmptyString which is defined as "EMPTY" is incorrectly used as an empty string, should use XMLUni::fgZeroLenString instead
Revision Changes Path
1.7 +6 -3 xml-xerces/c/samples/SAX2Print/SAX2PrintHandlers.cpp
Index: SAX2PrintHandlers.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/SAX2Print/SAX2PrintHandlers.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- SAX2PrintHandlers.cpp 1 Feb 2002 22:40:44 -0000 1.6
+++ SAX2PrintHandlers.cpp 28 May 2002 20:24:15 -0000 1.7
@@ -56,6 +56,9 @@
/*
* $Log: SAX2PrintHandlers.cpp,v $
+ * Revision 1.7 2002/05/28 20:24:15 tng
+ * XMLUni::fgEmptyString which is defined as "EMPTY" is incorrectly used as an empty string, should use XMLUni::fgZeroLenString instead
+ *
* Revision 1.6 2002/02/01 22:40:44 peiyongz
* sane_include
*
@@ -239,7 +242,7 @@
fFormatter << XMLFormatter::NoEscapes << gEndElement ;
if ( fExpandNS )
{
- if (XMLString::compareIString(uri,XMLUni::fgEmptyString) != 0)
+ if (XMLString::compareIString(uri,XMLUni::fgZeroLenString) != 0)
fFormatter << uri << chColon;
fFormatter << localname << chCloseAngle;
}
@@ -279,7 +282,7 @@
fFormatter << XMLFormatter::NoEscapes << chOpenAngle ;
if ( fExpandNS )
{
- if (XMLString::compareIString(uri,XMLUni::fgEmptyString) != 0)
+ if (XMLString::compareIString(uri,XMLUni::fgZeroLenString) != 0)
fFormatter << uri << chColon;
fFormatter << localname ;
}
@@ -297,7 +300,7 @@
fFormatter << XMLFormatter::NoEscapes << chSpace ;
if ( fExpandNS )
{
- if (XMLString::compareIString(attributes.getURI(index),XMLUni::fgEmptyString) != 0)
+ if (XMLString::compareIString(attributes.getURI(index),XMLUni::fgZeroLenString) != 0)
fFormatter << attributes.getURI(index) << chColon;
fFormatter << attributes.getLocalName(index) ;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org