equal
deleted
inserted
replaced
688 const TDesC& aMessage, |
688 const TDesC& aMessage, |
689 const TDesC& aDefaultInput, |
689 const TDesC& aDefaultInput, |
690 HBufC*& aReturnedInput ) |
690 HBufC*& aReturnedInput ) |
691 { |
691 { |
692 TBool retVal; |
692 TBool retVal; |
693 |
693 TInt length = aDefaultInput.Length(); |
694 // defInput is not modified by the dialog. |
694 if ( aDefaultInput.Length() > KMaxAltTextLength ) |
695 TPtr defInput( (TUint16*) aDefaultInput.Ptr(), aDefaultInput.Length(), |
695 { |
696 KMaxAltTextLength ); |
696 length = KMaxAltTextLength; |
697 |
697 } |
|
698 // defInput is not modified by the dialog.Truncate if length is greater than KMaxAltTextLength |
|
699 TPtr defInput( (TUint16*) aDefaultInput.Ptr(), length, KMaxAltTextLength ); |
|
700 |
698 CBrowserScriptPromptDialog* dialog = |
701 CBrowserScriptPromptDialog* dialog = |
699 new (ELeave) CBrowserScriptPromptDialog( defInput, aReturnedInput ); |
702 new (ELeave) CBrowserScriptPromptDialog( defInput, aReturnedInput ); |
700 |
703 |
701 iDialogs.Append( dialog ); // Store a pointer to the dialog for CancelAll() |
704 iDialogs.Append( dialog ); // Store a pointer to the dialog for CancelAll() |
702 |
705 |