equal
deleted
inserted
replaced
27 #include <ContentListingFactory.h> |
27 #include <ContentListingFactory.h> |
28 #include <barsread.h> |
28 #include <barsread.h> |
29 #include <collate.h> |
29 #include <collate.h> |
30 #include "MGDebugPrint.h" |
30 #include "MGDebugPrint.h" |
31 |
31 |
|
32 // for CleanupResetAndDestroyPushL |
|
33 #include <mmf/common/mmfcontrollerpluginresolver.h> |
|
34 |
32 // CONSTANTS |
35 // CONSTANTS |
33 const TInt KCLFResourceVersionNumber( 1 ); |
36 const TInt KCLFResourceVersionNumber( 1 ); |
34 const TInt KCLFEmptyArrayGranularity( 1 ); |
37 const TInt KCLFEmptyArrayGranularity( 1 ); |
35 const TInt KCLFSortingStyleArrayGranularity( 3 ); |
38 const TInt KCLFSortingStyleArrayGranularity( 3 ); |
36 const TInt KCLFResourceVersion1( 1 ); |
39 const TInt KCLFResourceVersion1( 1 ); |
441 // ----------------------------------------------------------------------------- |
444 // ----------------------------------------------------------------------------- |
442 // |
445 // |
443 void CCLFItemListModelImpl::CopyArrayL( const TArray<MCLFItem*>& aSource, |
446 void CCLFItemListModelImpl::CopyArrayL( const TArray<MCLFItem*>& aSource, |
444 RPointerArray<MCLFItem>& aDest ) |
447 RPointerArray<MCLFItem>& aDest ) |
445 { |
448 { |
|
449 CleanupResetAndDestroyPushL( aDest ); |
446 for( TInt i = aSource.Count() - 1; i >=0; i--) |
450 for( TInt i = aSource.Count() - 1; i >=0; i--) |
447 { |
451 { |
448 aDest.AppendL( aSource[i] ); |
452 aDest.AppendL( aSource[i] ); |
449 } |
453 } |
|
454 CleanupStack::Pop( &aDest ); |
450 } |
455 } |
451 |
456 |
452 // ----------------------------------------------------------------------------- |
457 // ----------------------------------------------------------------------------- |
453 // CCLFItemListModelImpl::CancelRefresh |
458 // CCLFItemListModelImpl::CancelRefresh |
454 // ----------------------------------------------------------------------------- |
459 // ----------------------------------------------------------------------------- |