equal
deleted
inserted
replaced
661 TBuf<KUniMaxDescription> description; |
661 TBuf<KUniMaxDescription> description; |
662 description.Zero(); |
662 description.Zero(); |
663 length = subject.Length(); |
663 length = subject.Length(); |
664 // Saving as pure text from the editor which may contain emoticons. |
664 // Saving as pure text from the editor which may contain emoticons. |
665 HBufC *text = iHeader.SubjectControl()->Editor().GetTextInHBufL(); |
665 HBufC *text = iHeader.SubjectControl()->Editor().GetTextInHBufL(); |
|
666 if(text) |
|
667 { |
666 CleanupStack::PushL( text ); |
668 CleanupStack::PushL( text ); |
667 description.Copy( text->Ptr(), length ); |
669 description.Copy( text->Ptr(), length ); |
668 CleanupStack::PopAndDestroy( text ); |
670 CleanupStack::PopAndDestroy( text ); |
|
671 |
669 |
672 |
670 |
673 |
671 while( length-- ) |
674 while( length-- ) |
672 { |
675 { |
673 if ( description[length] == CEditableText::EParagraphDelimiter || |
676 if ( description[length] == CEditableText::EParagraphDelimiter || |
675 description[length] = ' '; |
678 description[length] = ' '; |
676 } |
679 } |
677 description.Trim(); |
680 description.Trim(); |
678 return description.AllocL(); |
681 return description.AllocL(); |
679 } |
682 } |
|
683 else |
|
684 { |
|
685 return KNullDesC().AllocL(); |
|
686 } |
|
687 } |
680 |
688 |
681 return NULL; |
689 return NULL; |
682 } |
690 } |
683 |
691 |
684 // --------------------------------------------------------- |
692 // --------------------------------------------------------- |