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 2002/11/03 06:51:48 UTC
cvs commit: xml-xalan/c/src/XSLT ElemText.cpp
dbertoni 2002/11/02 21:51:48
Modified: c/src/XSLT ElemText.cpp
Log:
Ensure ElemText never has any children.
Revision Changes Path
1.9 +3 -15 xml-xalan/c/src/XSLT/ElemText.cpp
Index: ElemText.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemText.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ElemText.cpp 24 Sep 2002 01:42:34 -0000 1.8
+++ ElemText.cpp 3 Nov 2002 05:51:47 -0000 1.9
@@ -116,6 +116,7 @@
ElemText::~ElemText()
{
+ assert(getNextSiblingElem() == 0 && getFirstChildElem() == 0);
}
@@ -129,20 +130,7 @@
bool
-ElemText::childTypeAllowed(int xslToken) const
+ElemText::childTypeAllowed(int /* xslToken */) const
{
- bool fResult = false;
-
- switch(xslToken)
- {
- // char-instructions
- case StylesheetConstructionContext::ELEMNAME_TEXT_LITERAL_RESULT:
- fResult = true;
- break;
-
- default:
- break;
- }
-
- return fResult;
+ return false;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org