summaryrefslogtreecommitdiff
path: root/vcl/source/edit/texteng.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-13 18:05:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-13 18:05:44 +0100
commiteba8515c779eef24d53a464d9345a9154ca195d6 (patch)
treefdc00e0c6a50c65db1a99908f0b8abaf64f4f694 /vcl/source/edit/texteng.cxx
parentfdff69bd587f92781b45fdc5b9c592d4c57317e9 (diff)
loplugin:loopvartoosmall
Change-Id: Ide32700aab3427a8bf18c806968822cdf3f91bf2
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r--vcl/source/edit/texteng.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 2dd9e377cb07..cd17c108a271 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -1774,8 +1774,8 @@ void TextEngine::CreateTextPortions( sal_uInt32 nPara, sal_Int32 nStartPos )
// Unfortunately, the number of TextPortions does not have to be
// equal to aPositions.Count(), because of linebreaks
sal_Int32 nPortionStart = 0;
- sal_uInt16 nInvPortion = 0;
- sal_uInt16 nP;
+ size_t nInvPortion = 0;
+ size_t nP;
for ( nP = 0; nP < pTEParaPortion->GetTextPortions().size(); nP++ )
{
TETextPortion* pTmpPortion = pTEParaPortion->GetTextPortions()[nP];