summaryrefslogtreecommitdiff
path: root/svtools/source/control
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-08 11:01:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-08 11:01:32 +0100
commit6412b9c5dd10af511cc255a952be4b18a25ab9a8 (patch)
tree66eb7ad4d2a7f2fe351d8c5b5c56658ef825eb4c /svtools/source/control
parent6271381baa0d2db257070cb7ecfc9abf89faaf0f (diff)
loplugin:loopvartoosmall
Change-Id: If76fa042462897735d0d67341a3734b8cfced12c
Diffstat (limited to 'svtools/source/control')
-rw-r--r--svtools/source/control/ruler.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index aaaca43a0e54..b8a027a8949e 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -688,9 +688,8 @@ void Ruler::ImplDrawBorders(vcl::RenderContext& rRenderContext, long nMin, long
long n2;
long nTemp1;
long nTemp2;
- sal_uInt32 i;
- for (i = 0; i < mpData->pBorders.size(); i++)
+ for (std::vector<RulerBorder>::size_type i = 0; i < mpData->pBorders.size(); i++)
{
if (mpData->pBorders[i].nStyle & RulerBorderStyle::Invisible)
continue;
@@ -793,14 +792,13 @@ void Ruler::ImplDrawIndent(vcl::RenderContext& rRenderContext, const tools::Poly
void Ruler::ImplDrawIndents(vcl::RenderContext& rRenderContext, long nMin, long nMax, long nVirTop, long nVirBottom)
{
- sal_uInt32 j;
long n;
long nIndentHeight = (mnVirHeight / 2) - 1;
long nIndentWidth2 = nIndentHeight-3;
tools::Polygon aPoly(5);
- for (j = 0; j < mpData->pIndents.size(); j++)
+ for (std::vector<RulerIndent>::size_type j = 0; j < mpData->pIndents.size(); j++)
{
if (mpData->pIndents[j].bInvisible)
continue;