dbertoni 2004/11/14 13:41:13
Modified: c/samples/ExternalFunction ExternalFunction.cpp
Log:
Some cleanup of the change for controlled memory management.
Revision Changes Path
1.39 +11 -11 xml-xalan/c/samples/ExternalFunction/ExternalFunction.cpp
Index: ExternalFunction.cpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/samples/ExternalFunction/ExternalFunction.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- ExternalFunction.cpp 10 Nov 2004 19:09:39 -0000 1.38
+++ ExternalFunction.cpp 14 Nov 2004 21:41:13 -0000 1.39
@@ -105,9 +105,9 @@
#else
virtual FunctionSquareRoot*
#endif
- clone(MemoryManagerType& theManager) const
+ clone(MemoryManagerType& theManager) const
{
- return cloneFunction_1<FunctionSquareRoot>()( *this,
theManager);
+ return XalanCopyConstruct(theManager, *this);
}
protected:
@@ -120,9 +120,9 @@
* @return function error message
*/
const XalanDOMString&
- getError(XalanDOMString& theResult) const
+ getError(XalanDOMString& theResult) const
{
- theResult.assign(XALAN_STATIC_UCODE_STRING("The square-root()
function accepts one argument!"));
+ theResult.assign("The square-root() function accepts one argument!");
return theResult;
}
@@ -194,9 +194,9 @@
#else
virtual FunctionCube*
#endif
- clone(MemoryManagerType& theManager) const
+ clone(MemoryManagerType& theManager) const
{
- return cloneFunction_1<FunctionCube>()(*this, theManager);
+ return XalanCopyConstruct(theManager, *this);
}
protected:
@@ -209,9 +209,9 @@
* @return function error message
*/
const XalanDOMString&
- getError(XalanDOMString& theResult) const
+ getError(XalanDOMString& theResult) const
{
- theResult.assign(XALAN_STATIC_UCODE_STRING("The cube() function
accepts one argument!"));
+ theResult.assign("The cube() function accepts one argument!");
return theResult;
}
@@ -296,9 +296,9 @@
#else
virtual FunctionAsctime*
#endif
- clone(MemoryManagerType& theManager) const
+ clone(MemoryManagerType& theManager) const
{
- return cloneFunction_1<FunctionAsctime>()(*this, theManager);
+ return XalanCopyConstruct(theManager, *this);
}
protected:
@@ -313,7 +313,7 @@
const XalanDOMString&
getError(XalanDOMString& theResult) const
{
- theResult.assign(XALAN_STATIC_UCODE_STRING("The asctime() function
accepts one argument!"));
+ theResult.assign("The asctime() function accepts one argument!");
return theResult;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]