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/11/21 23:02:13 UTC
cvs commit: xml-xalan/c/src/XPath FunctionString.cpp
dbertoni 00/11/21 14:02:12
Modified: c/src/XPath FunctionString.cpp
Log:
Fixed return statement and removed unnecessary XObjectPtr.
Revision Changes Path
1.5 +2 -6 xml-xalan/c/src/XPath/FunctionString.cpp
Index: FunctionString.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionString.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FunctionString.cpp 2000/11/21 21:08:14 1.4
+++ FunctionString.cpp 2000/11/21 22:02:11 1.5
@@ -92,7 +92,7 @@
{
executionContext.error("The string() function requires a non-null context node!");
- return 0;
+ return XObjectPtr();
}
else
{
@@ -101,11 +101,7 @@
// as the only member.
// So we have to create an XNodeList with the context node as
// the only member and call the str() function on it.
-
- // An XObject that contains the context node.
- XObjectPtr theXObject(executionContext.createNodeSet(*context));
-
- return executionContext.getXObjectFactory().createString(theXObject->str());
+ return executionContext.getXObjectFactory().createString(executionContext.createNodeSet(*context)->str());
}
}