You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2003/12/30 17:48:16 UTC

cvs commit: xml-xerces/c/src/xercesc/framework/psvi PSVIAttributeList.cpp

neilg       2003/12/30 08:48:16

  Modified:    c/src/xercesc/framework/psvi PSVIAttributeList.cpp
  Log:
  some indices in the PSVIAttributeList were 1 off
  
  Revision  Changes    Path
  1.6       +5 -2      xml-xerces/c/src/xercesc/framework/psvi/PSVIAttributeList.cpp
  
  Index: PSVIAttributeList.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/PSVIAttributeList.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PSVIAttributeList.cpp	20 Dec 2003 06:19:38 -0000	1.5
  +++ PSVIAttributeList.cpp	30 Dec 2003 16:48:16 -0000	1.6
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.6  2003/12/30 16:48:16  neilg
  + * some indices in the PSVIAttributeList were 1 off
  + *
    * Revision 1.5  2003/12/20 06:19:38  neilg
    * store name/namespace of corresponding attribute in PSVIAttributeList; not all PSVIAttributes have XSAttributeDeclarations
    *
  @@ -94,7 +97,7 @@
    */
   const unsigned int PSVIAttributeList::getLength() const
   {
  -    return fAttrPos+1;
  +    return fAttrPos;
   }
   
   /*
  @@ -153,7 +156,7 @@
   PSVIAttribute *PSVIAttributeList::getAttributePSVIByName(const XMLCh *attrName
                   , const XMLCh * attrNamespace)
   {
  -    for (unsigned int index=0; index <= fAttrPos; index++) {
  +    for (unsigned int index=0; index < fAttrPos; index++) {
           if (XMLString::equals(attrName,fAttrNameList->elementAt(index))
                   && XMLString::equals(attrNamespace,fAttrNSList->elementAt(index)))
               return fAttrList->elementAt(index);
  
  
  

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