274 *dcf2->iParts[i]->iContentId); |
274 *dcf2->iParts[i]->iContentId); |
275 CleanupStack::PushL(id); |
275 CleanupStack::PushL(id); |
276 part = CEmbeddedObject::NewL(*id, *dcf2->iParts[i]->iMimeType, |
276 part = CEmbeddedObject::NewL(*id, *dcf2->iParts[i]->iMimeType, |
277 EContentObject); |
277 EContentObject); |
278 CleanupStack::PopAndDestroy(id); |
278 CleanupStack::PopAndDestroy(id); |
|
279 CleanupStack::PushL(part); |
279 aArray.AppendL(part); |
280 aArray.AppendL(part); |
|
281 CleanupStack::Pop(part); |
280 } |
282 } |
281 } |
283 } |
282 else |
284 else |
283 { |
285 { |
284 id = CnvUtfConverter::ConvertToUnicodeFromUtf8L( |
286 id = CnvUtfConverter::ConvertToUnicodeFromUtf8L( |
285 *iDcf->iContentID); |
287 *iDcf->iContentID); |
286 CleanupStack::PushL(id); |
288 CleanupStack::PushL(id); |
287 part = CEmbeddedObject::NewL(*id, *iDcf->iMimeType, |
289 part = CEmbeddedObject::NewL(*id, *iDcf->iMimeType, |
288 EContentObject); |
290 EContentObject); |
289 CleanupStack::PopAndDestroy(id); |
291 CleanupStack::PopAndDestroy(id); |
|
292 CleanupStack::PushL(part); |
290 aArray.AppendL(part); |
293 aArray.AppendL(part); |
|
294 CleanupStack::Pop(part); |
291 } |
295 } |
292 } |
296 } |
293 } |
297 } |
294 |
298 |
295 // ----------------------------------------------------------------------------- |
299 // ----------------------------------------------------------------------------- |