diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-22 00:17:41 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-24 23:22:07 +0100 |
commit | 1802ccd4ea202789b0076c1b499c729f95b4d753 (patch) | |
tree | 80ee4a5055eb1db9e16bb786b42b29070bbc82b8 /sw | |
parent | 766f13a807537da4f48cf58f769f0af679bc1980 (diff) |
sal_uInt16 to long and constify loop bound
Change-Id: Iad9498676994cd60521f251fd84dcc2b90b54e88
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/misc/pggrid.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx index 3b252f977497..3fb9dd182372 100644 --- a/sw/source/ui/misc/pggrid.cxx +++ b/sw/source/ui/misc/pggrid.cxx @@ -109,7 +109,8 @@ SwTextGridPage::SwTextGridPage(Window *pParent, const SfxItemSet &rSet) : XColorListRef pColorLst = XColorList::GetStdColorList(); m_pColorLB->InsertAutomaticEntryColor( Color( COL_AUTO ) ); - for( sal_uInt16 i = 0; i < pColorLst->Count(); ++i ) + const long nCount = pColorLst->Count(); + for( long i = 0; i < nCount; ++i ) { XColorEntry* pEntry = pColorLst->GetColor( i ); Color aColor = pEntry->GetColor(); |