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 2004/11/14 22:56:20 UTC
cvs commit: xml-xalan/c/src/xalanc/XPath FunctionLang.cpp
dbertoni 2004/11/14 13:56:20
Modified: c/src/xalanc/XPath FunctionLang.cpp
Log:
Use standard functions for initialization and termination of static strings.
Revision Changes Path
1.8 +2 -2 xml-xalan/c/src/xalanc/XPath/FunctionLang.cpp
Index: FunctionLang.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/XPath/FunctionLang.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- FunctionLang.cpp 14 Nov 2004 21:13:05 -0000 1.7
+++ FunctionLang.cpp 14 Nov 2004 21:56:20 -0000 1.8
@@ -149,7 +149,7 @@
void
FunctionLang::initialize(MemoryManagerType& theManager)
{
- XalanDOMString(s_langString, theManager).swap(s_localString);
+ s_localString.reset(theManager, s_langString);
}
@@ -157,7 +157,7 @@
void
FunctionLang::terminate()
{
- XalanDOMString(XalanMemMgrs::getDummyMemMgr()).swap(s_localString);
+ releaseMemory(s_localString, XalanMemMgrs::getDummyMemMgr());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org