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...@apache.org on 2003/08/07 23:51:00 UTC
cvs commit: xml-xalan/c/src/xalanc/XSLT Stylesheet.cpp
dbertoni 2003/08/07 14:51:00
Modified: c/src/xalanc/XSLT Stylesheet.cpp
Log:
Don't assume postConstruction() has been called in findNamedTemplate(). Fixes Bugzilla 22210.
Revision Changes Path
1.3 +3 -3 xml-xalan/c/src/xalanc/XSLT/Stylesheet.cpp
Index: Stylesheet.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/XSLT/Stylesheet.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Stylesheet.cpp 15 Jul 2003 01:05:22 -0000 1.2
+++ Stylesheet.cpp 7 Aug 2003 21:51:00 -0000 1.3
@@ -800,8 +800,6 @@
const ElemTemplate*
Stylesheet::findNamedTemplate(const XalanQName& qname) const
{
- assert(m_importsSize == m_imports.size());
-
const ElemTemplateMapType::const_iterator it = m_namedTemplates.find(qname);
if(it != m_namedTemplates.end())
@@ -813,7 +811,9 @@
const ElemTemplate* namedTemplate = 0;
// Look for the template in the imports
- for(StylesheetVectorType::size_type i = 0; i < m_importsSize; ++i)
+ const StylesheetVectorType::size_type importsCount = m_imports.size();
+
+ for(StylesheetVectorType::size_type i = 0; i < importsCount; ++i)
{
const Stylesheet* const stylesheet = m_imports[i];
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org