diff options
Diffstat (limited to 'basic/source/sbx/sbxcoll.cxx')
-rw-r--r-- | basic/source/sbx/sbxcoll.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxcoll.cxx b/basic/source/sbx/sbxcoll.cxx index 7803ee013b2f..97573876064c 100644 --- a/basic/source/sbx/sbxcoll.cxx +++ b/basic/source/sbx/sbxcoll.cxx @@ -279,7 +279,8 @@ sal_Bool SbxStdCollection::LoadData( SvStream& rStrm, sal_uInt16 nVer ) sal_Bool bRes = SbxCollection::LoadData( rStrm, nVer ); if( bRes ) { - rStrm.ReadByteString( aElemClass, RTL_TEXTENCODING_ASCII_US ); + aElemClass = read_lenPrefixed_uInt8s_ToOUString(rStrm, + RTL_TEXTENCODING_ASCII_US); rStrm >> bAddRemoveOk; } return bRes; @@ -290,7 +291,8 @@ sal_Bool SbxStdCollection::StoreData( SvStream& rStrm ) const sal_Bool bRes = SbxCollection::StoreData( rStrm ); if( bRes ) { - rStrm.WriteByteString( aElemClass, RTL_TEXTENCODING_ASCII_US ); + write_lenPrefixed_uInt8s_FromOUString(rStrm, aElemClass, + RTL_TEXTENCODING_ASCII_US); rStrm << bAddRemoveOk; } return bRes; |