summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-29 14:12:20 +0200
committerNoel Grandin <noel@peralex.com>2015-06-02 12:09:56 +0200
commit6ef9f7e2025a2334034e9c8f7b3422220add4742 (patch)
treea97096df0d2627574f685ed37b3abbe296833538 /sc
parentacd4ecc38fc3aa486b7eaf8d5effa4a5ea034ccd (diff)
loplugin:loopvartoosmall
Change-Id: Ib4def3435eab4625645c5afe3b151f9f430564ac
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/pvfundlg.cxx2
-rw-r--r--sc/source/ui/optdlg/opredlin.cxx2
-rw-r--r--sc/source/ui/optdlg/tpusrlst.cxx2
-rw-r--r--sc/source/ui/optdlg/tpview.cxx2
4 files changed, 4 insertions, 4 deletions
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; i<nSubCount; i++ )
+ for ( size_t i=0; i<nSubCount; i++ )
{
if ( i!=0 )
aEntryListStr += OUString(CR);
diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx
index c1d533417e13..f1a475fcb60c 100644
--- a/sc/source/ui/optdlg/tpview.cxx
+++ b/sc/source/ui/optdlg/tpview.cxx
@@ -404,7 +404,7 @@ ScTpLayoutOptions::ScTpLayoutOptions( vcl::Window* pParent,
m_pAlignCB->SetClickHdl(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 );