summaryrefslogtreecommitdiff
path: root/svx/source/customshapes/EnhancedCustomShape2d.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-08 11:03:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-08 11:03:22 +0100
commitdf016bf7f46122b79d9c8df6fbb1a95faa44c465 (patch)
tree79d7afb70328ee952afa64875dbc7eff00fd939f /svx/source/customshapes/EnhancedCustomShape2d.cxx
parent6412b9c5dd10af511cc255a952be4b18a25ab9a8 (diff)
loplugin:loopvartoosmall
Change-Id: Iedec0d8b1f031f8c311acba80609b59df5f9f4cf
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShape2d.cxx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape2d.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index b8accf9367c3..c45e41abe3f4 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -2065,10 +2065,9 @@ void CorrectCalloutArrows( MSO_SPT eSpType, sal_uInt32 nLineObjectCount, std::ve
case mso_sptAccentCallout90 :
case mso_sptAccentBorderCallout90 :
{
- sal_uInt32 i, nLine = 0;
- for ( i = 0; i < vObjectList.size(); i++ )
+ sal_uInt32 nLine = 0;
+ for ( SdrPathObj* pObj: vObjectList )
{
- SdrPathObj* pObj( vObjectList[ i ] );
if(pObj->IsLine())
{
nLine++;
@@ -2090,10 +2089,9 @@ void CorrectCalloutArrows( MSO_SPT eSpType, sal_uInt32 nLineObjectCount, std::ve
case mso_sptCallout2 :
case mso_sptBorderCallout2 :
{
- sal_uInt32 i, nLine = 0;
- for ( i = 0; i < vObjectList.size(); i++ )
+ sal_uInt32 nLine = 0;
+ for ( SdrPathObj* pObj: vObjectList )
{
- SdrPathObj* pObj( vObjectList[ i ] );
if(pObj->IsLine())
{
nLine++;
@@ -2116,10 +2114,9 @@ void CorrectCalloutArrows( MSO_SPT eSpType, sal_uInt32 nLineObjectCount, std::ve
case mso_sptCallout3 :
case mso_sptBorderCallout3 :
{
- sal_uInt32 i, nLine = 0;
- for ( i = 0; i < vObjectList.size(); i++ )
+ sal_uInt32 nLine = 0;
+ for ( SdrPathObj* pObj: vObjectList )
{
- SdrPathObj* pObj( vObjectList[ i ] );
if(pObj->IsLine())
{
if ( nLine )