--- a/mtpfws/mtpfw/dataproviders/dputility/src/cmtpfullenumservicehandler.cpp Tue Feb 02 01:11:40 2010 +0200
+++ b/mtpfws/mtpfw/dataproviders/dputility/src/cmtpfullenumservicehandler.cpp Fri Mar 19 09:40:39 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: