auriemma    00/10/17 10:30:13

  Modified:    c/src/XPath XPathExpression.cpp XPathProcessorImpl.cpp
  Log:
  Added explicit initialization of vectors.
  
  Revision  Changes    Path
  1.17      +1 -1      xml-xalan/c/src/XPath/XPathExpression.cpp
  
  Index: XPathExpression.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathExpression.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- XPathExpression.cpp       2000/09/19 14:56:38     1.16
  +++ XPathExpression.cpp       2000/10/17 17:30:11     1.17
  @@ -372,7 +372,7 @@
        m_lastOpCodeIndex(0),
        m_tokenQueue(),
        m_currentPosition(0),
  -     m_patternMap(100),
  +     m_patternMap(100, 0),
        m_currentPattern()
   {
        m_opMap.reserve(eDefaultOpMapSize);
  
  
  
  1.25      +8 -8      xml-xalan/c/src/XPath/XPathProcessorImpl.cpp
  
  Index: XPathProcessorImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathProcessorImpl.cpp,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- XPathProcessorImpl.cpp    2000/10/11 19:43:05     1.24
  +++ XPathProcessorImpl.cpp    2000/10/17 17:30:12     1.25
  @@ -1600,7 +1600,7 @@
        {
                m_expression->appendOpCode(XPathExpression::eOP_EXTFUNCTION);
   
  -             XPathExpression::OpCodeMapValueVectorType       theArgs(2);
  +             XPathExpression::OpCodeMapValueVectorType       theArgs(2, 0);
   
                theArgs[0] = m_expression->getTokenPosition() - 1;
   
  @@ -1651,7 +1651,7 @@
                                int             theFunctionID =
                                        
XPath::getFunctionTable().nameToID(m_token);
   
  -                             XPathExpression::OpCodeMapValueVectorType       
theArgs(2);
  +                             XPathExpression::OpCodeMapValueVectorType       
theArgs(2, 0);
                
                                theArgs[0] = theFunctionID;
                                theArgs[1] = 0;
  @@ -1691,7 +1691,7 @@
        {
                const int       newOpPos = m_expression->opCodeMapLength();
   
  -             XPathExpression::OpCodeMapValueVectorType       theArgs(1);
  +             XPathExpression::OpCodeMapValueVectorType       theArgs(1, 0);
   
                // Tell how long the step is without the predicate
                theArgs[0] = 4;
  @@ -1750,7 +1750,7 @@
                        error("'..[predicate]' or '.[predicate]' is illegal 
syntax.  Use 'self::node()[predicate]' instead.");
                }
   
  -             XPathExpression::OpCodeMapValueVectorType       theArgs(1);
  +             XPathExpression::OpCodeMapValueVectorType       theArgs(1, 0);
   
                // Tell how long the step is without the predicate
                theArgs[0] = 4;
  @@ -1764,7 +1764,7 @@
        {
                nextToken();
   
  -             XPathExpression::OpCodeMapValueVectorType       theArgs(1);
  +             XPathExpression::OpCodeMapValueVectorType       theArgs(1, 0);
   
                // Tell how long the step is without the predicate
                theArgs[0] = 4;
  @@ -1826,7 +1826,7 @@
                // by a regular step pattern.
                // if(lookahead(XalanUnicode::charCommercialAt, 1) == true || 
lookahead("::", 2) == true)
                {
  -                     XPathExpression::OpCodeMapValueVectorType       
theArgs(1);
  +                     XPathExpression::OpCodeMapValueVectorType       
theArgs(1, 0);
   
                        // Tell how long the step is without the predicate
                        theArgs[0] = 4;
  @@ -2147,7 +2147,7 @@
                {
                        const int       newOpPos = 
m_expression->opCodeMapLength();
   
  -                     XPathExpression::OpCodeMapValueVectorType       
theArgs(1);
  +                     XPathExpression::OpCodeMapValueVectorType       
theArgs(1, 0);
   
                        // Tell how long the step is without the predicate
                        theArgs[0] = 4;
  @@ -2166,7 +2166,7 @@
        {
                const int       newOpPos = m_expression->opCodeMapLength();
   
  -             XPathExpression::OpCodeMapValueVectorType       theArgs(1);
  +             XPathExpression::OpCodeMapValueVectorType       theArgs(1, 0);
   
                // Tell how long the step is without the predicate
                theArgs[0] = 4;
  
  
  

Reply via email to