diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-19 22:19:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 10:10:58 +0000 |
commit | d00fc0e293852cfc019ffaffa65bee327397677b (patch) | |
tree | 3b28b98fb451bee33eff7c06a93dbb4063f07554 /sot | |
parent | convert ReadByteString/WriteByteString from ByteString to OString (diff) | |
download | core-d00fc0e293852cfc019ffaffa65bee327397677b.tar.gz core-d00fc0e293852cfc019ffaffa65bee327397677b.zip |
disentangle Read/WriteByteString OUString variants
The ones which use a definite 8-bit encoding read/write pascal-style
strings with a 16bit length prefix.
The ones which use a definite 16-bit encoding read/write pascal-style
UTF-16 strings with a 32bit length prefix, i.e. not ByteStrings at all
The "I dunno" ones might be UTF-16 strings or 8-bit strings, depending
on the charset. Rename to ReadUniOrByteString like the other
similar horrors to flag this misery
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index f1cf5c0c3127..49c7bd3cdcc6 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -3375,7 +3375,7 @@ String UCBStorage::CreateLinkFile( const String& rName ) // store it as key/value pair String aLink = String::CreateFromAscii("ContentURL="); aLink += aURL; - pStream->WriteByteString( aLink, RTL_TEXTENCODING_UTF8 ); + write_lenPrefixed_uInt8s_FromOUString(*pStream, aLink, RTL_TEXTENCODING_UTF8); pStream->Flush(); // move the stream to its desired location |