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/xecontent.cxx | |
parent | c437b033748733273c43d071ab42a1863ed80416 (diff) |
ByteString->rtl::OString
Diffstat (limited to 'sc/source/filter/excel/xecontent.cxx')
-rw-r--r-- | sc/source/filter/excel/xecontent.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx index bcfd95aaf200..1d879450a8c0 100644 --- a/sc/source/filter/excel/xecontent.cxx +++ b/sc/source/filter/excel/xecontent.cxx @@ -384,12 +384,13 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU mnFlags |= EXC_HLINK_ABS; mnFlags |= EXC_HLINK_BODY; - ByteString aAsciiLink( aFileName, rRoot.GetTextEncoding() ); + rtl::OString aAsciiLink(rtl::OUStringToOString(aFileName, + rRoot.GetTextEncoding())); XclExpString aLink( aFileName, EXC_STR_FORCEUNICODE, 255 ); aXclStrm << XclTools::maGuidFileMoniker << nLevel - << sal_uInt32( aAsciiLink.Len() + 1 ); // string length + 1 trailing zero byte - aXclStrm.Write( aAsciiLink.GetBuffer(), aAsciiLink.Len() ); + << sal_uInt32( aAsciiLink.getLength() + 1 ); // string length + 1 trailing zero byte + aXclStrm.Write( aAsciiLink.getStr(), aAsciiLink.getLength() ); aXclStrm << sal_uInt8( 0 ) << sal_uInt32( 0xDEADFFFF ); aXclStrm.WriteZeroBytes( 20 ); |