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/09/09 09:09:20 UTC
cvs commit: xml-xalan/c/src/XPath XPathFunctionTable.hpp
dbertoni 2002/09/09 00:09:19
Modified: c/src/XPath XPathFunctionTable.hpp
Log:
Don't check range.
Revision Changes Path
1.18 +4 -9 xml-xalan/c/src/XPath/XPathFunctionTable.hpp
Index: XPathFunctionTable.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPathFunctionTable.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- XPathFunctionTable.hpp 7 Sep 2002 00:43:48 -0000 1.17
+++ XPathFunctionTable.hpp 9 Sep 2002 07:09:19 -0000 1.18
@@ -183,15 +183,10 @@
const Function&
operator[](int theFunctionID) const
{
- if (theFunctionID >= 0 &&
- CollectionType::size_type(theFunctionID) < m_FunctionCollection.size())
- {
- return *m_FunctionCollection[theFunctionID];
- }
- else
- {
- throw XPathExceptionFunctionNotAvailable(theFunctionID);
- }
+ assert(theFunctionID >= 0 &&
+ CollectionType::size_type(theFunctionID) < m_FunctionCollection.size());
+
+ return *m_FunctionCollection[theFunctionID];
}
enum { InvalidFunctionNumberID = -1 };
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org