summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/tpoption.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-08 10:56:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-08 10:57:07 +0100
commit1f2fc6e71788432f3ce29fac1678bcd39533f59e (patch)
treedd0f96b8b8a5624ff0a55c52aca4263325adedeb /sd/source/ui/dlg/tpoption.cxx
parent3d213b3dc5130bdbacbd64be00867eecad6373e8 (diff)
loplugin:loopvartoosmall
Change-Id: I4804a25046a35c24d19d578c014d8e52f62b70e8
Diffstat (limited to 'sd/source/ui/dlg/tpoption.cxx')
-rw-r--r--sd/source/ui/dlg/tpoption.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx
index a2cff387542e..2700f8ee94eb 100644
--- a/sd/source/ui/dlg/tpoption.cxx
+++ b/sd/source/ui/dlg/tpoption.cxx
@@ -240,9 +240,8 @@ SdTpOptionsMisc::SdTpOptionsMisc(vcl::Window* pParent, const SfxItemSet& rInAttr
// fill ListBox with metrics
SvxStringArray aMetricArr( RID_SVXSTR_FIELDUNIT_TABLE );
- sal_uInt16 i;
- for ( i = 0; i < aMetricArr.Count(); ++i )
+ for ( sal_uInt32 i = 0; i < aMetricArr.Count(); ++i )
{
OUString sMetric = aMetricArr.GetStringByPos( i );
sal_IntPtr nFieldUnit = aMetricArr.GetValue( i );
@@ -275,9 +274,9 @@ SdTpOptionsMisc::SdTpOptionsMisc(vcl::Window* pParent, const SfxItemSet& rInAttr
sal_uInt16 aTable[ TABLE_COUNT ] =
{ 1, 2, 4, 5, 8, 10, 16, 20, 30, 40, 50, 100 };
- for( i = 0; i < TABLE_COUNT; i++ )
+ for( sal_uInt16 i = 0; i < TABLE_COUNT; i++ )
m_pCbScale->InsertEntry( GetScale( 1, aTable[i] ) );
- for( i = 1; i < TABLE_COUNT; i++ )
+ for( sal_uInt16 i = 1; i < TABLE_COUNT; i++ )
m_pCbScale->InsertEntry( GetScale( aTable[i], 1 ) );
}