filemanager/bkupengine/src/CMMCScBkupDriveDataSizeManager.cpp
branchRCL_3
changeset 19 5181328fad28
parent 0 6a9f87576119
equal deleted inserted replaced
15:649c558486f0 19:5181328fad28
   454 // 
   454 // 
   455 // 
   455 // 
   456 // ---------------------------------------------------------------------------
   456 // ---------------------------------------------------------------------------
   457 void CMMCScBkupDataTypeSizer::GetSizesL( RArray<TMMCScBkupDriveAndSize>& aSizes ) const
   457 void CMMCScBkupDataTypeSizer::GetSizesL( RArray<TMMCScBkupDriveAndSize>& aSizes ) const
   458     {
   458     {
       
   459     CleanupClosePushL( aSizes );
   459     aSizes.Reset();
   460     aSizes.Reset();
   460     //
   461     //
   461     for( TInt d = EDriveA; d<=EDriveZ; d++ )
   462     for( TInt d = EDriveA; d<=EDriveZ; d++ )
   462         {
   463         {
   463         // Get the size of each data type for this drive.
   464         // Get the size of each data type for this drive.
   477         if  ( driveAndSize.Size() > 0 )
   478         if  ( driveAndSize.Size() > 0 )
   478             {
   479             {
   479             aSizes.AppendL( driveAndSize );
   480             aSizes.AppendL( driveAndSize );
   480             }
   481             }
   481         }
   482         }
       
   483     CleanupStack::Pop( &aSizes );
   482     }
   484     }
   483 
   485 
   484 
   486 
   485 // ---------------------------------------------------------------------------
   487 // ---------------------------------------------------------------------------
   486 // CMMCScBkupDataTypeSizer::CombinedSize()
   488 // CMMCScBkupDataTypeSizer::CombinedSize()