diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-07 00:00:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-07 08:54:40 +0100 |
commit | 2c51e2a65a7a8ea72748ce570af8ab7bbb1fbf72 (patch) | |
tree | f96729db478f88db4959816ba3a8e50574db0385 /sd | |
parent | 0d1eb4ab6c1093bb1cc94be73c1640b92a75521d (diff) |
use read_uInt8s_AsOString here
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index c0c81fd62be7..9dc3cab2237b 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -2596,10 +2596,8 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a *xCompObj >> nStringLen; if ( ( nStringLen > 1 ) && ( ( xCompObj->Tell() + nStringLen ) < nStreamLen ) ) { // i think that the OleIdentifier will follow - ByteString aTemp; - sal_Char* p = aTemp.AllocBuffer( (sal_uInt16)(nStringLen - 1) ); - xCompObj->Read( p, nStringLen - 1 ); - aOleIdentifier = String( aTemp, gsl_getSystemTextEncoding() ); + rtl::OString aTemp = read_uInt8s_AsOString(*xCompObj, nStringLen - 1); + aOleIdentifier = rtl::OStringToOUString( aTemp, gsl_getSystemTextEncoding() ); } } } |