diff -r f8e15b44d440 -r 4843bb5893b6 mtpfws/mtpfw/dataproviders/dputility/src/cmtpfullenumservicehandler.cpp --- a/mtpfws/mtpfw/dataproviders/dputility/src/cmtpfullenumservicehandler.cpp Fri Feb 19 23:40:44 2010 +0200 +++ b/mtpfws/mtpfw/dataproviders/dputility/src/cmtpfullenumservicehandler.cpp Fri Mar 12 15:46:41 2010 +0200 @@ -197,23 +197,12 @@ case EMTPServicePropertyFilterType: { - CMTPTypeObjectPropDescEnumerationForm* expectedForm - = CMTPTypeObjectPropDescEnumerationForm::NewL(EMTPTypeUINT8); - CleanupStack::PushL(expectedForm); - expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterNone)); - expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterContactsWithPhone)); - expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterTaskActive)); - expectedForm->AppendSupportedValueL(TMTPTypeUint8(EMTPSyncSvcFilterCalendarWindowWithRecurrence)); - - servicePropDesc = CMTPTypeServicePropDesc::NewL( + servicePropDesc = CMTPTypeServicePropDesc::NewLC( aServicePropertyCode, EMTPTypeUINT8, CMTPTypeObjectPropDesc::EReadWrite, - CMTPTypeObjectPropDesc::EEnumerationForm, - expectedForm); - // Form can be NULL, so need destroy here for MTPType object here. - CleanupStack::PopAndDestroy(expectedForm); - CleanupStack::PushL(servicePropDesc); + CMTPTypeObjectPropDesc::ENone, + NULL); break; } case EMTPServicePropertySyncObjectReferences: