equal
deleted
inserted
replaced
119 } |
119 } |
120 |
120 |
121 EXPORT_C CDesC8Array* CAgnCalendarInfo::PropertyKeysL() const |
121 EXPORT_C CDesC8Array* CAgnCalendarInfo::PropertyKeysL() const |
122 { |
122 { |
123 const TInt KPropertyCount(iProperties.Count()); |
123 const TInt KPropertyCount(iProperties.Count()); |
124 |
124 const TInt propertyCount = KPropertyCount==0 ? 1 : KPropertyCount; |
125 CDesC8Array* propertyKeys = new(ELeave) CDesC8ArrayFlat(KPropertyCount); |
125 |
|
126 CDesC8Array* propertyKeys = new(ELeave) CDesC8ArrayFlat(propertyCount); |
126 CleanupStack::PushL(propertyKeys); |
127 CleanupStack::PushL(propertyKeys); |
127 |
128 |
128 for (TInt i(0) ; i < KPropertyCount ; ++i) |
129 for (TInt i(0) ; i < KPropertyCount ; ++i) |
129 { |
130 { |
130 if (iProperties[i]->State() != CAgnCalendarInfoProperty::EDeleted) |
131 if (iProperties[i]->State() != CAgnCalendarInfoProperty::EDeleted) |