Kaydet (Commit) 404208f2 authored tarafından Michael Stahl's avatar Michael Stahl

emfio: don't reinvent read_uInt16s_ToOUString

Change-Id: Ib12923762b5dd4d255c89a5acc54fdc5678a58ed
üst a3cb93b3
...@@ -1587,18 +1587,7 @@ namespace emfio ...@@ -1587,18 +1587,7 @@ namespace emfio
{ {
if ( ( nLen * sizeof(sal_Unicode) ) <= ( mnEndPos - mpInputStream->Tell() ) ) if ( ( nLen * sizeof(sal_Unicode) ) <= ( mnEndPos - mpInputStream->Tell() ) )
{ {
std::unique_ptr<sal_Unicode[]> pBuf(new sal_Unicode[ nLen ]); aText = read_uInt16s_ToOUString(*mpInputStream, nLen);
mpInputStream->ReadBytes(pBuf.get(), nLen << 1);
#ifdef OSL_BIGENDIAN
sal_Char nTmp, *pTmp = (sal_Char*)( pBuf.get() + nLen );
while ( pTmp-- != (sal_Char*)pBuf.get() )
{
nTmp = *pTmp--;
pTmp[ 1 ] = *pTmp;
*pTmp = nTmp;
}
#endif
aText = OUString(pBuf.get(), nLen);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment