dbertoni 00/11/21 14:00:25
Modified: c/src/XPath FunctionNormalizeSpace.cpp
Log:
Fixed return statement and removed unnecessary XObjectPtr.
Revision Changes Path
1.6 +2 -6 xml-xalan/c/src/XPath/FunctionNormalizeSpace.cpp
Index: FunctionNormalizeSpace.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionNormalizeSpace.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- FunctionNormalizeSpace.cpp 2000/11/21 21:08:04 1.5
+++ FunctionNormalizeSpace.cpp 2000/11/21 22:00:24 1.6
@@ -93,7 +93,7 @@
executionContext.error("The normalize-space() function requires
a non-null context node!",
context);
- return 0;
+ return XObjectPtr();
}
else
{
@@ -102,11 +102,7 @@
// into a string-value, which really means using FunctionString,
// but we don't need to do that, since our XObject classes
// do the real work in turning themselves into strings.
-
- // A node set that contains the context node.
- XObjectPtr
theXObject(executionContext.createNodeSet(*context));
-
- return normalize(executionContext, theXObject->str());
+ return normalize(executionContext,
executionContext.createNodeSet(*context)->str());
}
}