diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-27 22:37:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-28 10:56:58 +0000 |
commit | 0ad02521c11369777931ce92eea799a409979cba (patch) | |
tree | fb57b2e5bc39d0ffc0ef437cad5c40131fa06c74 | |
parent | a18457b29aafc130148dce3fb586c59d6e1f798d (diff) |
use read_uInt16s_ToOUString instead of hand-crafted loop
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 930de77ef42e..50ce3e722b90 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -2390,14 +2390,9 @@ sal_Bool SdrPowerPointImport::SeekToContentOfProgTag( sal_Int32 nVersion, SvStre sal_uInt32 i = rContentHd.nRecLen >> 1; if ( i > n ) { - String aPre, aSuf; - sal_Unicode *pTmp = aPre.AllocBuffer( n ); - while ( n-- ) - rSt >> *pTmp++; + String aPre = read_uInt16s_ToOUString(rSt, n); n = (sal_uInt16)( i - 6 ); - pTmp = aSuf.AllocBuffer( n ); - while ( n-- ) - rSt >> *pTmp++; + String aSuf = read_uInt16s_ToOUString(rSt, n); sal_Int32 nV = aSuf.ToInt32(); if ( ( nV == nVersion ) && ( aPre == String( RTL_CONSTASCII_USTRINGPARAM( "___PPT" ) ) ) ) { |