--- a/telephonyserverplugins/ctsydispatchlayer/src/cphonebookdispatcher.cpp Thu Jul 15 19:58:53 2010 +0300
+++ b/telephonyserverplugins/ctsydispatchlayer/src/cphonebookdispatcher.cpp Thu Aug 19 11:03:36 2010 +0300
@@ -1116,10 +1116,10 @@
if((aError == KErrNone) && (aPhonebook != DispatcherPhonebook::EUnknown))
{
//fill the CTSY pointer
- CArrayPtrSeg<CPhoneBookStoreEntry>* readEntries = new(ELeave) CArrayPtrSeg<CPhoneBookStoreEntry>(1);
- iPhonebookReadPtrs[aPhonebook] = readEntries;
-
- TRAP(aError,FillCtsyPhoneBookStoreL(aPhonebookEntries,*(iPhonebookReadPtrs[aPhonebook])));
+ TRAP ( aError,
+ CArrayPtrSeg<CPhoneBookStoreEntry>* readEntries = new(ELeave) CArrayPtrSeg<CPhoneBookStoreEntry>(1);
+ iPhonebookReadPtrs[aPhonebook] = readEntries;
+ FillCtsyPhoneBookStoreL(aPhonebookEntries,*(iPhonebookReadPtrs[aPhonebook])));
}
CPhoneBookDataPackage phoneBookDataPackage;
@@ -1185,11 +1185,11 @@
if((aError == KErrNone) && (aPhonebook != DispatcherPhonebook::EUnknown)/* && (iPhonebookCachePtrs[aPhonebook])*/)
{
- CArrayPtrSeg<CPhoneBookStoreEntry>* readEntries = new(ELeave) CArrayPtrSeg<CPhoneBookStoreEntry>(1);
- iPhonebookCachePtrs[aPhonebook] = readEntries;
-
- TRAP(aError,FillCtsyPhoneBookStoreL(aPhonebookEntries, *(iPhonebookCachePtrs[aPhonebook])));
-
+ TRAP(aError,
+ CArrayPtrSeg<CPhoneBookStoreEntry>* readEntries = new(ELeave) CArrayPtrSeg<CPhoneBookStoreEntry>(1);
+ iPhonebookCachePtrs[aPhonebook] = readEntries;
+ FillCtsyPhoneBookStoreL(aPhonebookEntries, *(iPhonebookCachePtrs[aPhonebook])));
+
if(aError)
{
iPhonebookCachePtrs[aPhonebook]->ResetAndDestroy();