ipsservices/ipssosplugin/src/ipsplgmessagepartstoreroperation.cpp
changeset 68 83cc6bae1de8
parent 40 2c62ef3caffd
equal deleted inserted replaced
67:459da34cdb45 68:83cc6bae1de8
   282 	iDataBuffer = HBufC8::NewL((data16->Length() * 2) + 1);
   282 	iDataBuffer = HBufC8::NewL((data16->Length() * 2) + 1);
   283 	TPtr8 ptr8(iDataBuffer->Des());
   283 	TPtr8 ptr8(iDataBuffer->Des());
   284 	CnvUtfConverter::ConvertFromUnicodeToUtf8(ptr8, *data16);
   284 	CnvUtfConverter::ConvertFromUnicodeToUtf8(ptr8, *data16);
   285 
   285 
   286 	// Get text/html part file for write
   286 	// Get text/html part file for write
   287 	RFile file = aPart->GetContentFileL();
   287 	RFile file = aPart->GetContentFileL(ETrue);
   288 	CleanupClosePushL(file);
   288 	CleanupClosePushL(file);
   289 
   289 
   290     // if we don't do SetSize(0) characters from the original mail are left in the end of the mail
   290     // if we don't do SetSize(0) characters from the original mail are left in the end of the mail
   291 	// if the modified mail contains less characters.
   291 	// if the modified mail contains less characters.
   292 	User::LeaveIfError( file.SetSize( 0 ) );
   292 	User::LeaveIfError( file.SetSize( 0 ) );