diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-30 11:31:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-30 13:18:38 +0000 |
commit | bbc94edb9a91b27910d43610db9994df10dd99e1 (patch) | |
tree | 99f81b7bc96dd93ae6c6e6a4f7a57cfda72cdfa4 /basic/source | |
parent | 47e1e8494dde85414d28efafa99b33a62b59116d (diff) |
refactor ConvertLineEnd
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/runtime/inputbox.cxx | 3 | ||||
-rw-r--r-- | basic/source/runtime/iosys.cxx | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx index d59eae1d34e9..e3bc61770591 100644 --- a/basic/source/runtime/inputbox.cxx +++ b/basic/source/runtime/inputbox.cxx @@ -116,8 +116,7 @@ void SvRTLInputBox::PositionPrompt(const String& rPrompt,const Size& rDlgSize) { if ( rPrompt.Len() == 0 ) return; - String aText_( rPrompt ); - aText_.ConvertLineEnd( LINEEND_CR ); + String aText_(convertLineEnd(rPrompt, LINEEND_CR)); aPromptText.SetPosPixel( LogicToPixel(Point(5,5))); aPromptText.SetText( aText_ ); Size aSize( rDlgSize ); diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 07a696db8d5f..fb33fcd18930 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -705,9 +705,8 @@ namespace { void WriteLines(SvStream &rStream, const rtl::OString& rStr) { - ByteString aStr( rStr ); - aStr.ConvertLineEnd( rStream.GetLineDelimiter() ); - rStream.Write( aStr.GetBuffer(), aStr.Len() ); + rtl::OString aStr(convertLineEnd(rStr, rStream.GetLineDelimiter()) ); + write_uInt8s_FromOString(rStream, rStr); endl( rStream ); } } |