--- a/persistentstorage/sql/SRC/Server/SqlSrvObjContainer.inl Tue Aug 31 16:57:14 2010 +0300
+++ b/persistentstorage/sql/SRC/Server/SqlSrvObjContainer.inl Wed Sep 01 12:39:58 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -55,7 +55,7 @@
template <class T>
void RDbObjContainer<T>::AllocL()
{
- __ASSERT_DEBUG(iFree <= iSize, __SQLPANIC(ESqlPanicInternalError));
+ __SQLASSERT(iFree <= iSize, ESqlPanicInternalError);
if(iFree == iSize)
{
if(iSize >= KMaxSize)
@@ -87,15 +87,15 @@
template <class T>
TInt RDbObjContainer<T>::Add(T* aObj)
{
- __ASSERT_DEBUG(aObj != NULL, __SQLPANIC(ESqlPanicBadArgument));
- __ASSERT_DEBUG(iFree <= iSize, __SQLPANIC(ESqlPanicInternalError));
+ __SQLASSERT(aObj != NULL, ESqlPanicBadArgument);
+ __SQLASSERT(iFree <= iSize, ESqlPanicInternalError);
TInt idx = iFree;
if(idx < iSize)
{
/*RDbObjContainer<T>::*/TEntry& entry = iEntries[idx];
- __ASSERT_DEBUG(!entry.iObj, __SQLPANIC(ESqlPanicInternalError));
+ __SQLASSERT(!entry.iObj, ESqlPanicInternalError);
iFree = entry.iNext;
- __ASSERT_DEBUG(iFree <= iSize, __SQLPANIC(ESqlPanicInternalError));
+ __SQLASSERT(iFree <= iSize, ESqlPanicInternalError);
entry.iObj = aObj;
return MakeHandle(idx);
}
@@ -135,7 +135,7 @@
template <class T>
void RDbObjContainer<T>::Remove(TInt aHandle)
{
- __ASSERT_DEBUG(iFree <= iSize, __SQLPANIC(ESqlPanicInternalError));
+ __SQLASSERT(iFree <= iSize, ESqlPanicInternalError);
if(aHandle > 0) //It is a handle, sent by the client. It isn't a server's problem if the handle is <= 0.
{
TInt idx = MakeIndex(aHandle);
@@ -148,7 +148,7 @@
iFree = idx;
}
}
- __ASSERT_DEBUG(iFree <= iSize, __SQLPANIC(ESqlPanicInternalError));
+ __SQLASSERT(iFree <= iSize, ESqlPanicInternalError);
}
/**