diff -r 90517678cc4f -r 453da2cfceef qtmobility/tests/benchmarks/contacts/tst_bm_contacts.cpp --- a/qtmobility/tests/benchmarks/contacts/tst_bm_contacts.cpp Mon May 03 13:18:40 2010 +0300 +++ b/qtmobility/tests/benchmarks/contacts/tst_bm_contacts.cpp Fri May 14 16:41:33 2010 +0300 @@ -327,11 +327,9 @@ filter->SetContactFilterTypeALL(EFalse); filter->SetContactFilterTypeCard(ETrue); - CContactIdArray *iContacts = 0x0; - QBENCHMARK { contactsDb->FilterDatabaseL(*filter); - iContacts = CContactIdArray::NewLC(filter->iIds); + CContactIdArray *iContacts = CContactIdArray::NewLC(filter->iIds); } CleanupStack::PopAndDestroy(3); //iContacts, filter, contactsDb @@ -399,7 +397,7 @@ int id = id_list.takeFirst(); id_list.append(id); - CContactItem *item; + CContactItem *item = 0; TInt r; QBENCHMARK { @@ -502,16 +500,16 @@ TInt r; - CContactItem *item1; - CContactItem *item2; - CContactItem *item3; - CContactItem *item4; - CContactItem *item5; - CContactItem *item6; - CContactItem *item7; - CContactItem *item8; - CContactItem *item9; - CContactItem *item10; + CContactItem *item1 = 0; + CContactItem *item2 = 0; + CContactItem *item3 = 0; + CContactItem *item4 = 0; + CContactItem *item5 = 0; + CContactItem *item6 = 0; + CContactItem *item7 = 0; + CContactItem *item8 = 0; + CContactItem *item9 = 0; + CContactItem *item10 = 0; QBENCHMARK { TRAP(r, item1 = contactDb->ReadContactL(id));