diff options
-rw-r--r-- | sd/source/filter/ppt/propread.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx index 08987b58f0d5..f73d26fbaa3f 100644 --- a/sd/source/filter/ppt/propread.cxx +++ b/sd/source/filter/ppt/propread.cxx @@ -301,9 +301,9 @@ bool Section::GetDictionary( Dictionary& rDict ) { nSize >>= 1; aStream.Seek( nPos ); - sal_Unicode* pWString = (sal_Unicode*)pString; - for ( i = 0; i < nSize; i++ ) - aStream.ReadUInt16( pWString[ i ] ); + sal_Unicode* pWString = reinterpret_cast<sal_Unicode*>(pString); + for (sal_uInt32 j = 0; j < nSize; ++j) + aStream.ReadUInt16(pWString[j]); aString = OUString(pWString, lcl_getMaxSafeStrLen(nSize)); } else |