summaryrefslogtreecommitdiffstats
path: root/sd/source/filter/eppt
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-07 00:00:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-07 08:54:40 +0100
commit2c51e2a65a7a8ea72748ce570af8ab7bbb1fbf72 (patch)
treef96729db478f88db4959816ba3a8e50574db0385 /sd/source/filter/eppt
parentByteString->rtl::OString (diff)
downloadcore-2c51e2a65a7a8ea72748ce570af8ab7bbb1fbf72.tar.gz
core-2c51e2a65a7a8ea72748ce570af8ab7bbb1fbf72.zip
use read_uInt8s_AsOString here
Diffstat (limited to 'sd/source/filter/eppt')
-rw-r--r--sd/source/filter/eppt/epptso.cxx6
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() );
}
}
}