diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-10 09:32:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-10 09:50:06 +0100 |
commit | c6de82163e990478aa6448cf5b6537bcca1b80b5 (patch) | |
tree | 551c0925a4dfef73c65e640da9fa7cbdb5043dd3 /basic | |
parent | 1970b28c5c1fec03374bc053ea51e1147d0b3f49 (diff) |
drop intermediate strings
Change-Id: Ib4a2bf25fcb834bda1bc515152b01c292704893a
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/inputbox.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx index 14fe7f103154..c009f88818d0 100644 --- a/basic/source/runtime/inputbox.cxx +++ b/basic/source/runtime/inputbox.cxx @@ -65,12 +65,12 @@ SvRTLInputBox::SvRTLInputBox( Window* pParent, const String& rPrompt, aCancel.Show(); aEdit.Show(); aPromptText.Show(); - SetText( OUString(rTitle) ); + SetText( rTitle ); Font aFont( GetFont()); Color aColor( GetBackground().GetColor() ); aFont.SetFillColor( aColor ); aEdit.SetFont( aFont ); - aEdit.SetText( OUString(rDefault) ); + aEdit.SetText( rDefault ); aEdit.SetSelection( Selection( SELECTION_MIN, SELECTION_MAX ) ); } @@ -107,9 +107,9 @@ void SvRTLInputBox::PositionPrompt(const String& rPrompt,const Size& rDlgSize) { if ( rPrompt.Len() == 0 ) return; - String aText_(convertLineEnd(rPrompt, LINEEND_CR)); + OUString aText_(convertLineEnd(rPrompt, LINEEND_CR)); aPromptText.SetPosPixel( LogicToPixel(Point(5,5))); - aPromptText.SetText( OUString(aText_) ); + aPromptText.SetText( aText_ ); Size aSize( rDlgSize ); aSize.Width() -= 70; aSize.Height() -= 50; |