contentstorage/casrv/cawidgetscanner/src/widgetscannerutils.cpp
changeset 93 82b66994846c
parent 85 7feec50967db
child 98 d2f833ab7940
--- a/contentstorage/casrv/cawidgetscanner/src/widgetscannerutils.cpp	Fri Apr 16 14:45:49 2010 +0300
+++ b/contentstorage/casrv/cawidgetscanner/src/widgetscannerutils.cpp	Fri Apr 30 15:22:08 2010 +0300
@@ -11,7 +11,7 @@
 *
 * Contributors:
 *
-* Description: 
+* Description:
  *
 */
 
@@ -21,11 +21,11 @@
 #include "cadef.h"
 
 // -----------------------------------------------------------------------------
-// 
+//
 // -----------------------------------------------------------------------------
 //
 TBool WidgetScannerUtils::IsFileOnDrive(const TDesC& aFileName,
-    const DriveInfo::TDefaultDrives& aDefaultDrive) 
+    const DriveInfo::TDefaultDrives& aDefaultDrive)
 {
     if (aFileName.Length()) {
         TInt drive;
@@ -43,12 +43,11 @@
 
 
 // -----------------------------------------------------------------------------
-// 
+//
 // -----------------------------------------------------------------------------
 //
-TUint WidgetScannerUtils::CurrentMmcId( RFs& aFs )
+void WidgetScannerUtils::CurrentMmcId( const RFs& aFs, TDes& aMmcId )
     {
-    TUint mmcId = 0;
     TInt mmcDrive;
     if ( DriveInfo::GetDefaultDrive(
             DriveInfo::EDefaultRemovableMassStorage, mmcDrive ) == KErrNone )
@@ -56,10 +55,10 @@
         TVolumeInfo volumeInfo;
         if( aFs.Volume( volumeInfo, mmcDrive ) == KErrNone )
             {
-            mmcId = volumeInfo.iUniqueID;
+            aMmcId.Zero();
+            aMmcId.AppendNum( volumeInfo.iUniqueID );
             }
         }
-    return mmcId;
     }
 
-//  End of File  
+//  End of File