Author: borisk
Date: Tue Jan 26 08:50:37 2010
New Revision: 903128
URL: http://svn.apache.org/viewvc?rev=903128&view=rev
Log:
Change const_cast usage slightly to make it more portable. Get rid of a
few warnings.
Modified:
xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.hpp
Modified:
xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp?rev=903128&r1=903127&r2=903128&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
(original)
+++ xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp
Tue Jan 26 08:50:37 2010
@@ -168,7 +168,7 @@
char *endP = strstr(p, CRLF);
if(endP == 0) {
- for(endP = p; *endP != 0; ++endP);
+ for(endP = p; *endP != 0; ++endP) ;
}
// Transcode from iso-8859-1
@@ -257,7 +257,8 @@
{
if(fContentType == 0) {
// mutable
- const_cast<XMLCh*&>(fContentType) =
const_cast<BinHTTPInputStreamCommon*>(this)->findHeader("Content-Type");
+ const_cast<BinHTTPInputStreamCommon*>(this)->fContentType =
+
const_cast<BinHTTPInputStreamCommon*>(this)->findHeader("Content-Type");
}
return fContentType;
}
Modified:
xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.hpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.hpp?rev=903128&r1=903127&r2=903128&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.hpp
(original)
+++ xerces/c/trunk/src/xercesc/util/NetAccessors/BinHTTPInputStreamCommon.hpp
Tue Jan 26 08:50:37 2010
@@ -77,7 +77,7 @@
if(chars != 0 && *chars != 0) {
// get length of chars
XMLSize_t count = 0;
- for(; *(chars+count); ++count);
+ for(; *(chars+count); ++count) ;
if(fIndex + count >= fCapacity) {
insureCapacity(count);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]