You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ra...@apache.org on 2005/02/18 07:54:02 UTC

cvs commit: ws-axis/c/src/soap HeaderBlock.cpp

rangika     2005/02/17 22:54:02

  Modified:    c/src/soap HeaderBlock.cpp
  Log:
  Fixed the JIRA issue AXISCPP-436.
  
  Revision  Changes    Path
  1.48      +11 -0     ws-axis/c/src/soap/HeaderBlock.cpp
  
  Index: HeaderBlock.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.cpp,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- HeaderBlock.cpp	11 Feb 2005 18:45:33 -0000	1.47
  +++ HeaderBlock.cpp	18 Feb 2005 06:54:02 -0000	1.48
  @@ -560,6 +560,17 @@
       {
           //Attribute* pAttribute = new Attribute(localname, prefix, value); 
           pAttribute = new Attribute(localname, prefix, value); // Samisa - possible bug in line above 
  +        
  +       
  +        list<Attribute*>::iterator itCurrAttribute= m_attributes.begin();
  +        while(itCurrAttribute != m_attributes.end())
  +        {        
  +            if ((strcmp((*itCurrAttribute)->getLocalName(), localname) ==0) && (strcmp((*itCurrAttribute)->getPrefix(), prefix) ==0))
  +                return NULL;                 
  +            else
  +                itCurrAttribute++;        
  +        }    
  +        
           m_attributes.push_back(pAttribute);
       }