dbertoni 01/07/17 21:23:34
Modified: c/src/XPath XPath.cpp
Log:
Don't make extra copy of the XObjectPtr returned from running and extension
function.
Revision Changes Path
1.59 +3 -6 xml-xalan/c/src/XPath/XPath.cpp
Index: XPath.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XPath.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- XPath.cpp 2001/07/12 04:35:43 1.58
+++ XPath.cpp 2001/07/18 04:23:34 1.59
@@ -1033,11 +1033,11 @@
const XalanDOMString& ns =
m_expression.m_tokenQueue[m_expression.m_opMap[opPos]].str();
- opPos++;
+ ++opPos;
const XalanDOMString& funcName =
m_expression.m_tokenQueue[m_expression.m_opMap[opPos]].str();
- opPos++;
+ ++opPos;
typedef XPathExecutionContext::XObjectArgVectorType
XObjectArgVectorType;
@@ -1052,10 +1052,7 @@
opPos = nextOpPos;
}
- const XObjectPtr theResult =
- extfunction(context, opPos, ns, funcName, args,
executionContext);
-
- return theResult;
+ return extfunction(context, opPos, ns, funcName, args,
executionContext);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]