diff -r d5e927d5853b -r 7cee158cb8cd javaextensions/pim/cntadapter/src.s60/cpimcontactitemadapter.cpp --- a/javaextensions/pim/cntadapter/src.s60/cpimcontactitemadapter.cpp Tue Sep 14 21:06:50 2010 +0300 +++ b/javaextensions/pim/cntadapter/src.s60/cpimcontactitemadapter.cpp Wed Sep 15 12:05:25 2010 +0300 @@ -193,12 +193,12 @@ JELOG2(EPim); const CDesCArray& pimCategories = aItem.ItemData().Categories(); const TInt pimCategoryCount = pimCategories.Count(); - CArrayFix* newCategoryTable = new(ELeave) CArrayFixFlat (pimCategoryCount); - CleanupStack::PushL(newCategoryTable); + TBool* newCategoryTable = new(ELeave) TBool[pimCategoryCount]; + CleanupArrayDeletePushL(newCategoryTable); TInt i = 0; for (i = 0; i < pimCategoryCount; i++) { - newCategoryTable->InsertL(TRUE,i); + newCategoryTable[i] = ETrue; } CContactIdArray* cardCategories = aCard.GroupsJoinedLC(); @@ -220,14 +220,14 @@ } else { - // old group - newCategoryTable->InsertL(FALSE,pos); + // old group + newCategoryTable[pos] = EFalse; } } // then add new categories for (i = 0; i < pimCategoryCount; i++) { - if (newCategoryTable->At(i)) + if (newCategoryTable[i]) { TPtrC category = pimCategories[i]; iCategoryManager.AddToGroupL(id, category);