ipsservices/ipssosplugin/src/ipsplgmessagepartstoreroperation.cpp
changeset 75 47d84de1c893
parent 27 9ba4404ef423
equal deleted inserted replaced
72:64e38f08e49c 75:47d84de1c893
   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 ) );