mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetpartialobject.cpp
changeset 35 2ee890d2f7e7
parent 32 edd273b3192a
--- a/mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetpartialobject.cpp	Thu May 27 13:19:19 2010 +0300
+++ b/mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetpartialobject.cpp	Fri Jun 11 14:04:53 2010 +0300
@@ -63,7 +63,7 @@
 // Standard c++ constructor
 // -----------------------------------------------------------------------------
 //
-EXPORT_C CGetPartialObject::CGetPartialObject( MMTPDataProviderFramework& aFramework,
+CGetPartialObject::CGetPartialObject( MMTPDataProviderFramework& aFramework,
     MMTPConnection& aConnection ) :
         CRequestProcessor( aFramework,
             aConnection,
@@ -154,12 +154,10 @@
     CMTPObjectMetaData* objectInfo = iRequestChecker->GetObjectInfo( iObjectHandle );
     __ASSERT_DEBUG( objectInfo, Panic( EMmMTPDpObjectNull ) );
 
-    // NOTE: Change all TBuf<KMaxFileName> into TFileName for easily change when fs change the limitation of filename
-    TFileName fileSuid;
-    fileSuid.Append( objectInfo->DesC( CMTPObjectMetaData::ESuid ) );
+    TPtrC fileName = objectInfo->DesC( CMTPObjectMetaData::ESuid );
 
     iFileObject = CMTPTypeFile::NewL( iFramework.Fs(),
-        fileSuid,
+        fileName,
         ( TFileMode ) ( EFileRead | EFileShareReadersOnly ),
         iPartialDataLength,
         iOffset );