webengine/osswebengine/cache/src/HttpCachePostponeWriteUtilities.cpp
branchRCL_3
changeset 48 79859ed3eea9
parent 25 0ed94ceaa377
child 49 919f36ff910f
--- a/webengine/osswebengine/cache/src/HttpCachePostponeWriteUtilities.cpp	Thu Aug 19 10:58:56 2010 +0300
+++ b/webengine/osswebengine/cache/src/HttpCachePostponeWriteUtilities.cpp	Tue Aug 31 16:17:46 2010 +0300
@@ -99,8 +99,8 @@
     HttpCacheUtil::WriteFormatLog(0, _L("CACHEPOSTPONE: CHttpCacheEntryAsyncWriteHelper::WriteNextBodyBlock called on object %08x for block %d"), this, iBodyPart );
 #endif
 
-    iCurrentBuf.Set( iSource->BodyData().GetSegmentData(iBodyPart) );    
-    iSource->BodyFile().Write(iCurrentBuf, iStatus);
+    TPtrC8 bufferPtr( iSource->BodyData().GetSegmentData(iBodyPart) );
+    iSource->BodyFile().Write(bufferPtr, iStatus);
     }
 
 // -----------------------------------------------------------------------------