From 6ef9f7e2025a2334034e9c8f7b3422220add4742 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 29 May 2015 14:12:20 +0200 Subject: loplugin:loopvartoosmall Change-Id: Ib4def3435eab4625645c5afe3b151f9f430564ac --- sc/source/ui/dbgui/pvfundlg.cxx | 2 +- sc/source/ui/optdlg/opredlin.cxx | 2 +- sc/source/ui/optdlg/tpusrlst.cxx | 2 +- sc/source/ui/optdlg/tpview.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/dbgui/pvfundlg.cxx b/sc/source/ui/dbgui/pvfundlg.cxx index 292a07ea7572..d728f83b5d5b 100644 --- a/sc/source/ui/dbgui/pvfundlg.cxx +++ b/sc/source/ui/dbgui/pvfundlg.cxx @@ -652,7 +652,7 @@ void ScDPSubtotalOptDlg::FillLabelData( ScDPLabelData& rLabelData ) const rLabelData.maMembers = maLabelData.maMembers; sal_uLong nVisCount = m_pLbHide->GetEntryCount(); - for( sal_uInt16 nPos = 0; nPos < nVisCount; ++nPos ) + for( sal_uLong nPos = 0; nPos < nVisCount; ++nPos ) rLabelData.maMembers[nPos].mbVisible = !m_pLbHide->IsChecked(nPos); // *** HIERARCHY *** diff --git a/sc/source/ui/optdlg/opredlin.cxx b/sc/source/ui/optdlg/opredlin.cxx index 360836ea0cda..e2bea02f386c 100644 --- a/sc/source/ui/optdlg/opredlin.cxx +++ b/sc/source/ui/optdlg/opredlin.cxx @@ -144,7 +144,7 @@ void ScRedlineOptionsTabPage::Reset( const SfxItemSet* /* rSet */ ) m_pRemoveColorLB->SetUpdateMode( false); XColorListRef xColorLst = XColorList::GetStdColorList(); - for( sal_uInt16 i = 0; i < xColorLst->Count(); ++i ) + for( long i = 0; i < xColorLst->Count(); ++i ) { XColorEntry* pEntry = xColorLst->GetColor( i ); Color aColor = pEntry->GetColor(); diff --git a/sc/source/ui/optdlg/tpusrlst.cxx b/sc/source/ui/optdlg/tpusrlst.cxx index 0815c1322b51..d1fab49c63cb 100644 --- a/sc/source/ui/optdlg/tpusrlst.cxx +++ b/sc/source/ui/optdlg/tpusrlst.cxx @@ -284,7 +284,7 @@ void ScTpUserLists::UpdateEntries( size_t nList ) std::size_t nSubCount = pList->GetSubCount(); OUString aEntryListStr; - for ( sal_uInt16 i=0; iSetClickHdl(LINK(this, ScTpLayoutOptions, AlignHdl)); - for ( sal_uInt16 i = 0; i < aUnitArr.Count(); ++i ) + for ( sal_uInt32 i = 0; i < aUnitArr.Count(); ++i ) { OUString sMetric = aUnitArr.GetStringByPos( i ); FieldUnit eFUnit = (FieldUnit)aUnitArr.GetValue( i ); -- cgit