dbertoni    01/03/04 11:43:01

  Modified:    c/src/XPath SimpleNodeLocator.cpp
  Log:
  Better variable scope.
  
  Revision  Changes    Path
  1.36      +3 -3      xml-xalan/c/src/XPath/SimpleNodeLocator.cpp
  
  Index: SimpleNodeLocator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/SimpleNodeLocator.cpp,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- SimpleNodeLocator.cpp     2001/02/15 17:02:28     1.35
  +++ SimpleNodeLocator.cpp     2001/03/04 19:43:00     1.36
  @@ -321,9 +321,6 @@
        const XPathExpression&  currentExpression =
                xpath.getExpression();
   
  -     const int       startOpPos = opPos;
  -     const int       stepType = currentExpression.getOpCodeMapValue(opPos);
  -
        const int       endStep = 
currentExpression.getNextOpCodePosition(opPos);
        int             nextStepType = 
currentExpression.getOpCodeMapValue(endStep);
   
  @@ -368,6 +365,9 @@
        int                     argLen = 0;
   
        double          score = xpath.s_MatchScoreNone;
  +
  +     const int       startOpPos = opPos;
  +     const int       stepType = currentExpression.getOpCodeMapValue(opPos);
   
        switch(stepType)
        {
  
  
  

Reply via email to