summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-18 12:27:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-18 12:30:02 +0100
commit637ad743bb74a826ddd4db5efbcd33779b9132cd (patch)
tree0691b9c2ac6e6bf2ee87dabdd8022ea3080e83d2 /sd
parentef725dc31f6f8b9e34b3c5f2ef514c5a48041684 (diff)
reusing i here from the outer loop is definitely bogus
Change-Id: I4ee52c76b2c1723639185bc99b85d83be5b4fdd7
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/ppt/propread.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx
index 5454c562e69a..cc12ff0a2068 100644
--- a/sd/source/filter/ppt/propread.cxx
+++ b/sd/source/filter/ppt/propread.cxx
@@ -302,8 +302,8 @@ bool Section::GetDictionary( Dictionary& rDict )
nSize >>= 1;
aStream.Seek( nPos );
sal_Unicode* pWString = reinterpret_cast<sal_Unicode*>(pString);
- for ( i = 0; i < nSize; i++ )
- aStream.ReadUInt16( pWString[ i ] );
+ for (sal_uInt32 j = 0; j < nSize; ++j)
+ aStream.ReadUInt16(pWString[j]);
aString = OUString(pWString, lcl_getMaxSafeStrLen(nSize));
}
else