axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: ws-axis/c/src/soap/xsd/constraints WhiteSpace.cpp
Date Wed, 06 Jul 2005 15:16:47 GMT
dicka       2005/07/06 08:16:46

  Modified:    c/src/soap/xsd/constraints WhiteSpace.cpp
  Log:
  Correcting behaviour when collapsing whitespace
  
  PR: AXISCPP-733
  Submitted by: Adrian Dick
  
  Revision  Changes    Path
  1.7       +2 -2      ws-axis/c/src/soap/xsd/constraints/WhiteSpace.cpp
  
  Index: WhiteSpace.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/xsd/constraints/WhiteSpace.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WhiteSpace.cpp	27 Jun 2005 13:51:53 -0000	1.6
  +++ WhiteSpace.cpp	6 Jul 2005 15:16:46 -0000	1.7
  @@ -130,8 +130,6 @@
        */
       const AxisString& WhiteSpace::collapseWhiteSpace(AxisString& value)
       {
  -        m_strReturnVal = "";
  -
           if (value.empty ())
           {
               return value;
  @@ -145,6 +143,8 @@
           AxisString leadingStripped = stripLeadingWhiteSpace(replacedValue);
           replacedValue = stripTrailingWhiteSpace(leadingStripped);
   
  +        // Initialize return value to empty string
  +        m_strReturnVal = "";
           /*
            * Find space character and returns the first any of chars find
            * position
  
  
  

Mime
View raw message