diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-09 16:36:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-09 17:13:42 +0000 |
commit | f2fb3c464716e5f14e5b966592adb5b6714c0566 (patch) | |
tree | 8b7621dc296bbe6435395640e1af41cc339e9e67 /editeng | |
parent | coverity#1169807 Operands don't affect result (diff) | |
download | core-f2fb3c464716e5f14e5b966592adb5b6714c0566.tar.gz core-f2fb3c464716e5f14e5b966592adb5b6714c0566.zip |
coverity#1169806 Operands don't affect result
Change-Id: I8c219ae3b1adcc615d75a61afba9414eb8acdc22
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 51c0275e3726..728badf93a14 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -795,7 +795,7 @@ long ParaPortionList::GetYOffset(const ParaPortion* pPPortion) const sal_Int32 ParaPortionList::FindParagraph(long nYOffset) const { long nY = 0; - for (sal_Int32 i = 0, n = maPortions.size(); i < n; ++i) + for (size_t i = 0, n = maPortions.size(); i < n; ++i) { nY += maPortions[i].GetHeight(); // should also be correct even in bVisible! if ( nY > nYOffset ) |