You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/06/08 19:55:13 UTC

cvs commit: xml-xalan/c/src/XSLT ElemTemplateElement.cpp ElemTemplateElement.hpp

dbertoni    00/06/08 10:54:52

  Modified:    c/src/XSLT ElemTemplateElement.cpp ElemTemplateElement.hpp
  Log:
  Added fake, empty attributes to prevent crashes under certain circumstances.
  
  Revision  Changes    Path
  1.24      +2 -1      xml-xalan/c/src/XSLT/ElemTemplateElement.cpp
  
  Index: ElemTemplateElement.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemTemplateElement.cpp,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ElemTemplateElement.cpp	2000/06/01 15:25:55	1.23
  +++ ElemTemplateElement.cpp	2000/06/08 17:54:22	1.24
  @@ -136,6 +136,7 @@
   	m_previousSibling(0),
   	m_firstChild(0),
   	m_surrogateChildren(*this),
  +	m_fakeAttributes(),
   	m_baseIndentifier(stylesheetTree.getCurrentIncludeBaseIdentifier())
   {
   	assert(length(m_baseIndentifier) > 0);
  @@ -963,7 +964,7 @@
   const XalanNamedNodeMap*
   ElemTemplateElement::getAttributes() const
   {
  -	return 0;
  +	return &m_fakeAttributes;
   }
   
   
  
  
  
  1.12      +3 -0      xml-xalan/c/src/XSLT/ElemTemplateElement.hpp
  
  Index: ElemTemplateElement.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemTemplateElement.hpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ElemTemplateElement.hpp	2000/05/29 22:33:47	1.11
  +++ ElemTemplateElement.hpp	2000/06/08 17:54:26	1.12
  @@ -71,6 +71,7 @@
   
   #include <XalanDOM/XalanDOMString.hpp>
   #include <XalanDOM/XalanElement.hpp>
  +#include <XalanDOM/XalanEmptyNamedNodeMap.hpp>
   #include <XalanDOM/XalanNodeListSurrogate.hpp>
   
   
  @@ -767,6 +768,8 @@
   	ElemTemplateElement*	m_firstChild;
   
   	XalanNodeListSurrogate	m_surrogateChildren;
  +
  +	XalanEmptyNamedNodeMap	m_fakeAttributes;
   
   	const XalanDOMString	m_baseIndentifier;
   };