diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-10 22:11:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-11 11:55:04 +0000 |
commit | 6ddb02bad568be58c8728a40c43b81232c1ca4a0 (patch) | |
tree | b6883ad68c870f9ce7e0ee2676956e673f2848d8 /sc/source/filter/excel/xeescher.cxx | |
parent | c437b033748733273c43d071ab42a1863ed80416 (diff) |
ByteString->rtl::OString
Diffstat (limited to 'sc/source/filter/excel/xeescher.cxx')
-rw-r--r-- | sc/source/filter/excel/xeescher.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx index 2a290c3c1535..3d1e3d748e6c 100644 --- a/sc/source/filter/excel/xeescher.cxx +++ b/sc/source/filter/excel/xeescher.cxx @@ -1234,7 +1234,7 @@ XclExpNote::XclExpNote( const XclExpRoot& rRoot, const ScAddress& rScPos, switch( rRoot.GetBiff() ) { case EXC_BIFF5: - maNoteText = ByteString( aNoteText, rRoot.GetTextEncoding() ); + maNoteText = rtl::OUStringToOString(aNoteText, rRoot.GetTextEncoding()); break; case EXC_BIFF8: @@ -1276,15 +1276,15 @@ void XclExpNote::Save( XclExpStream& rStrm ) case EXC_BIFF5: { // write the NOTE record directly, there may be the need to create more than one - const sal_Char* pcBuffer = maNoteText.GetBuffer(); - sal_uInt16 nCharsLeft = static_cast< sal_uInt16 >( maNoteText.Len() ); + const sal_Char* pcBuffer = maNoteText.getStr(); + sal_uInt16 nCharsLeft = static_cast< sal_uInt16 >( maNoteText.getLength() ); while( nCharsLeft ) { sal_uInt16 nWriteChars = ::std::min( nCharsLeft, EXC_NOTE5_MAXLEN ); rStrm.StartRecord( EXC_ID_NOTE, 6 + nWriteChars ); - if( pcBuffer == maNoteText.GetBuffer() ) + if( pcBuffer == maNoteText.getStr() ) { // first record: row, col, length of complete text rStrm << static_cast< sal_uInt16 >( maScPos.Row() ) |