diff options
Diffstat (limited to 'vcl/source/gdi/rendergraphic.cxx')
-rw-r--r-- | vcl/source/gdi/rendergraphic.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/rendergraphic.cxx b/vcl/source/gdi/rendergraphic.cxx index 2077eedc4acd..16b08c4de17a 100644 --- a/vcl/source/gdi/rendergraphic.cxx +++ b/vcl/source/gdi/rendergraphic.cxx @@ -192,10 +192,9 @@ void RenderGraphic::ImplGetDefaults() const ::SvStream& operator>>( ::SvStream& rIStm, RenderGraphic& rRenderGraphic ) { ::VersionCompat aVCompat( rIStm, STREAM_READ ); - String aGraphicDataMimeType; sal_uInt32 nGraphicDataLength = 0; - rIStm.ReadByteString( aGraphicDataMimeType, RTL_TEXTENCODING_ASCII_US ); + rtl::OUString aGraphicDataMimeType = read_lenPrefixed_uInt8s_ToOUString(rIStm, RTL_TEXTENCODING_ASCII_US); rIStm >> nGraphicDataLength; rRenderGraphic = RenderGraphic( aGraphicDataMimeType, nGraphicDataLength ); @@ -215,7 +214,8 @@ void RenderGraphic::ImplGetDefaults() const ::VersionCompat aVCompat( rOStm, STREAM_WRITE, 1 ); const sal_uInt32 nGraphicDataLength = rRenderGraphic.GetGraphicDataLength(); - rOStm.WriteByteString( rRenderGraphic.GetGraphicDataMimeType(), RTL_TEXTENCODING_ASCII_US ); + write_lenPrefixed_uInt8s_FromOUString(rOStm, rRenderGraphic.GetGraphicDataMimeType(), + RTL_TEXTENCODING_ASCII_US); rOStm << nGraphicDataLength; if( nGraphicDataLength ) |