dbertoni    2003/01/07 20:47:16

  Modified:    c/src/XSLT KeyTable.cpp
  Log:
  Use const static NodeRefList instance.
  
  Revision  Changes    Path
  1.24      +4 -2      xml-xalan/c/src/XSLT/KeyTable.cpp
  
  Index: KeyTable.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/KeyTable.cpp,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- KeyTable.cpp      21 Dec 2002 00:22:23 -0000      1.23
  +++ KeyTable.cpp      8 Jan 2003 04:47:16 -0000       1.24
  @@ -183,7 +183,7 @@
                        }
                } // for(int nodeIndex = -1; nodeIndex < nNodes;)
   
  -             // The rest of this is getting the next prewalk position in 
  +             // The rest of this is getting the next pre-walk position in 
                // the tree.
                XalanNode*      nextNode = pos->getFirstChild();
   
  @@ -290,6 +290,8 @@
   
   
   
  +static const NodeRefList     theEmptyList;
  +
   void
   KeyTable::processKeyDeclaration(
                        KeysMapType&                                    theKeys,
  @@ -302,7 +304,7 @@
        // use attribute in xsl:key.
        assert(kd.getUse() != 0);
   
  -     const XObjectPtr        xuse(kd.getUse()->execute(testNode, resolver, 
NodeRefList(), executionContext));
  +     const XObjectPtr        xuse(kd.getUse()->execute(testNode, resolver, 
theEmptyList, executionContext));
   
        if(xuse->getType() != XObject::eTypeNodeSet)
        {
  
  
  

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

Reply via email to