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 2008/09/01 09:02:42 UTC
svn commit: r690865 - /xalan/c/trunk/src/xalanc/Include/XalanDeque.hpp
Author: dbertoni
Date: Mon Sep 1 00:02:41 2008
New Revision: 690865
URL: http://svn.apache.org/viewvc?rev=690865&view=rev
Log:
Major error reporting cleanup.
Modified:
xalan/c/trunk/src/xalanc/Include/XalanDeque.hpp
Modified: xalan/c/trunk/src/xalanc/Include/XalanDeque.hpp
URL: http://svn.apache.org/viewvc/xalan/c/trunk/src/xalanc/Include/XalanDeque.hpp?rev=690865&r1=690864&r2=690865&view=diff
==============================================================================
--- xalan/c/trunk/src/xalanc/Include/XalanDeque.hpp (original)
+++ xalan/c/trunk/src/xalanc/Include/XalanDeque.hpp Mon Sep 1 00:02:41 2008
@@ -233,17 +233,16 @@
static XalanDeque*
create(
- MemoryManagerType& theManager,
- size_type initialSize = 0,
- size_type blockSize = 10)
+ MemoryManager& theManager,
+ size_type initialSize = 0,
+ size_type blockSize = 10)
{
typedef XalanDeque ThisType;
- XalanMemMgrAutoPtr<ThisType, false> theGuard( theManager , (ThisType*)theManager.allocate(sizeof(ThisType)));
+ XalanAllocationGuard theGuard(theManager, theManager.allocate(sizeof(ThisType)));
- ThisType* theResult = theGuard.get();
-
- new (theResult) ThisType(theManager, initialSize, blockSize);
+ ThisType* const theResult =
+ new (theGuard.get()) ThisType(theManager, initialSize, blockSize);
theGuard.release();
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org