You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2005/12/16 20:55:43 UTC

svn commit: r357218 - /xalan/c/trunk/src/xalanc/Include/XalanVector.hpp

Author: dbertoni
Date: Fri Dec 16 11:55:41 2005
New Revision: 357218

URL: http://svn.apache.org/viewcvs?rev=357218&view=rev
Log:
Fixes for XALANC-583.

Modified:
    xalan/c/trunk/src/xalanc/Include/XalanVector.hpp

Modified: xalan/c/trunk/src/xalanc/Include/XalanVector.hpp
URL: http://svn.apache.org/viewcvs/xalan/c/trunk/src/xalanc/Include/XalanVector.hpp?rev=357218&r1=357217&r2=357218&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/Include/XalanVector.hpp (original)
+++ xalan/c/trunk/src/xalanc/Include/XalanVector.hpp Fri Dec 16 11:55:41 2005
@@ -14,11 +14,6 @@
  * limitations under the License.
  */
 
-/**
- * @author David Bertoni (david_n_bertoni@us.ibm.com)
- * @author Matthew Hoyt (mhoyt@ca.ibm.com)
- */
-
 #if !defined(XALANVECTOR_HEADER_GUARD_1357924680)
 #define XALANVECTOR_HEADER_GUARD_1357924680
 
@@ -910,7 +905,9 @@
     invariants() const
     {
         assert(m_allocation >= m_size);
-        assert(m_data == 0 && m_allocation == 0 || m_data != 0 && m_allocation != 0);
+        assert(
+            m_data == 0 && m_allocation == 0 ||
+            m_data != 0 && m_allocation != 0);
     }
 #endif
 
@@ -926,7 +923,7 @@
 #if defined(XALAN_HAS_STD_DISTANCE)
         return XALAN_STD_QUALIFIER distance(theFirst, theLast);
 #else
-        size_type   theDistance;
+        size_type   theDistance = size_type(0);
 
         XALAN_STD_QUALIFIER distance(theFirst, theLast, theDistance);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org