diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-10-27 12:07:10 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-10-27 12:37:46 +0200 |
commit | 404208f23c944a7d06e16bfb92b12fc58de775ad (patch) | |
tree | c2fd8153d2c565559f092c0622791dc42a858cdf /emfio | |
parent | a3cb93b3917608f5b329321caea8d699b80b1ddf (diff) |
emfio: don't reinvent read_uInt16s_ToOUString
Change-Id: Ib12923762b5dd4d255c89a5acc54fdc5678a58ed
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/emfreader.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index f865487e00d1..a6f6d218fa98 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -1587,18 +1587,7 @@ namespace emfio { if ( ( nLen * sizeof(sal_Unicode) ) <= ( mnEndPos - mpInputStream->Tell() ) ) { - std::unique_ptr<sal_Unicode[]> pBuf(new sal_Unicode[ 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); + aText = read_uInt16s_ToOUString(*mpInputStream, nLen); } } |