dbertoni 01/03/04 11:41:15
Modified: c/src/PlatformSupport AttributeListImpl.cpp
Log:
Fixed compiler error when iterator is not a pointer, and iterator bug in
operator=().
Revision Changes Path
1.17 +5 -5 xml-xalan/c/src/PlatformSupport/AttributeListImpl.cpp
Index: AttributeListImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/AttributeListImpl.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- AttributeListImpl.cpp 2000/12/01 22:00:07 1.16
+++ AttributeListImpl.cpp 2001/03/04 19:41:15 1.17
@@ -157,10 +157,10 @@
typedef AttributeVectorType::const_iterator
const_iterator;
- const const_iterator theEnd =
theRHS.m_AttributeVector.begin();
+ const const_iterator theEnd =
theRHS.m_AttributeVector.end();
// Copy the vector entries, and build the index map...
- for(const_iterator i = theRHS.m_AttributeVector.end();
i != theEnd; ++i)
+ for(const_iterator i =
theRHS.m_AttributeVector.begin(); i != theEnd; ++i)
{
AttributeVectorEntry* const
theEntry = *i;
@@ -169,9 +169,9 @@
// Add the item...
tempVector.push_back(
getNewEntry(
- theEntry->m_Name.begin(),
- theEntry->m_Type.begin(),
- theEntry->m_Value.begin()));
+ &*theEntry->m_Name.begin(),
+ &*theEntry->m_Type.begin(),
+ &*theEntry->m_Value.begin()));
}
// OK, we're safe, so swap the contents of the