equal
deleted
inserted
replaced
384 // |
384 // |
385 // --------------------------------------------------------------------------- |
385 // --------------------------------------------------------------------------- |
386 // |
386 // |
387 EXPORT_C TInt CPtiLanguageDatabase::CreateMappingTableL(TInt aCoreUid, RArray<TPtiLangDatabaseMapping>& aResult) |
387 EXPORT_C TInt CPtiLanguageDatabase::CreateMappingTableL(TInt aCoreUid, RArray<TPtiLangDatabaseMapping>& aResult) |
388 { |
388 { |
|
389 CleanupClosePushL( aResult ); |
389 TInt res = 0, i, lc; |
390 TInt res = 0, i, lc; |
390 TPtiLangDatabaseMapping map; |
391 TPtiLangDatabaseMapping map; |
391 CArrayFix<TInt>* dbs = ListDatabasesLC(aCoreUid); |
392 CArrayFix<TInt>* dbs = ListDatabasesLC(aCoreUid); |
392 |
393 |
393 for (i = 0; i < dbs->Count(); i++) |
394 for (i = 0; i < dbs->Count(); i++) |
411 } |
412 } |
412 } |
413 } |
413 } |
414 } |
414 |
415 |
415 CleanupStack::PopAndDestroy(); // dbs |
416 CleanupStack::PopAndDestroy(); // dbs |
|
417 CleanupStack::Pop( &aResult ); |
416 return res; |
418 return res; |
417 } |
419 } |
418 |
420 |
419 |
421 |
420 // --------------------------------------------------------------------------- |
422 // --------------------------------------------------------------------------- |
422 // |
424 // |
423 // --------------------------------------------------------------------------- |
425 // --------------------------------------------------------------------------- |
424 // |
426 // |
425 EXPORT_C TInt CPtiLanguageDatabase::CreateMappingTableWithOpaqueL(TInt aCoreUid, RArray<TPtiLangDatabaseMappingOpaque>& aResult) |
427 EXPORT_C TInt CPtiLanguageDatabase::CreateMappingTableWithOpaqueL(TInt aCoreUid, RArray<TPtiLangDatabaseMappingOpaque>& aResult) |
426 { |
428 { |
|
429 CleanupClosePushL( aResult ); |
427 TInt res = 0, lc; |
430 TInt res = 0, lc; |
428 TPtiLangDatabaseMappingOpaque map; |
431 TPtiLangDatabaseMappingOpaque map; |
429 RImplInfoPtrArray infoArray; |
432 RImplInfoPtrArray infoArray; |
430 TInt i; |
433 TInt i; |
431 |
434 |
456 } |
459 } |
457 } |
460 } |
458 } |
461 } |
459 |
462 |
460 CleanupStack::PopAndDestroy(); // infoArray |
463 CleanupStack::PopAndDestroy(); // infoArray |
461 |
464 CleanupStack::Pop( &aResult ); |
462 return res; |
465 return res; |
463 } |
466 } |
464 |
467 |
465 |
468 |
466 // End of file |
469 // End of file |