diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-30 09:38:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:18 +0000 |
commit | 6bbd168aac145b0f06b527450268b128783398fc (patch) | |
tree | 82456c2a5a8f016de8f9b456c0df7525b90ff95c /tools | |
parent | 164b4ba0c713d09684e1381590179cd3dadce2b7 (diff) |
convert SvStream::WriteLine to rtl::OString
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/stream.hxx | 2 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx index 2270effbd074..0ef6140007d1 100644 --- a/tools/inc/tools/stream.hxx +++ b/tools/inc/tools/stream.hxx @@ -380,7 +380,7 @@ public: sal_Bool ReadLine( ByteString& rStr ); sal_Bool ReadLine( rtl::OString& rStr ); - sal_Bool WriteLine( const ByteString& rStr ); + sal_Bool WriteLine( const rtl::OString& rStr ); sal_Bool WriteLines( const ByteString& rStr ); sal_Bool ReadByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet ); diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index f00e7ff55068..8e2cbb0646e2 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -899,9 +899,9 @@ sal_Bool SvStream::WriteByteStringLine( const String& rStr, rtl_TextEncoding eDe return WriteLine(rtl::OUStringToOString(rStr, eDestCharSet)); } -sal_Bool SvStream::WriteLine( const ByteString& rStr ) +sal_Bool SvStream::WriteLine(const rtl::OString& rStr) { - Write( rStr.GetBuffer(), rStr.Len() ); + Write(rStr.getStr(), rStr.getLength()); endl(*this); return nError == SVSTREAM_OK; } |