dbertoni    2003/01/07 22:58:12

  Modified:    c/src/XPath XPathExecutionContext.hpp
  Log:
  New execute overloads to avoid constant setting of context node.
  
  Revision  Changes    Path
  1.55      +14 -2     xml-xalan/c/src/XPath/XPathExecutionContext.hpp
  
  Index: XPathExecutionContext.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathExecutionContext.hpp,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- XPathExecutionContext.hpp 12 Dec 2002 22:24:31 -0000      1.54
  +++ XPathExecutionContext.hpp 8 Jan 2003 06:58:12 -0000       1.55
  @@ -154,11 +154,23 @@
   
                CurrentNodeSetAndRestore(
                                XPathExecutionContext&  theExecutionContext,
  -                             XalanNode*                              
theNode) :
  +                             XalanNode*                              
theNewNode) :
                        m_executionContext(theExecutionContext),
                        m_savedNode(theExecutionContext.getCurrentNode())
                {
  -                     m_executionContext.setCurrentNode(theNode);
  +                     theExecutionContext.setCurrentNode(theNewNode);
  +             }
  +
  +             CurrentNodeSetAndRestore(
  +                             XPathExecutionContext&  theExecutionContext,
  +                             XalanNode*                              
theOldNode,
  +                             XalanNode*                              
theNewNode) :
  +                     m_executionContext(theExecutionContext),
  +                     m_savedNode(theOldNode)
  +             {
  +                     assert(theExecutionContext.getCurrentNode() == 
theOldNode);
  +
  +                     theExecutionContext.setCurrentNode(theNewNode);
                }
   
                ~CurrentNodeSetAndRestore()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to