Kaydet (Commit) 1802ccd4 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to long and constify loop bound

Change-Id: Iad9498676994cd60521f251fd84dcc2b90b54e88
üst 766f13a8
...@@ -109,7 +109,8 @@ SwTextGridPage::SwTextGridPage(Window *pParent, const SfxItemSet &rSet) : ...@@ -109,7 +109,8 @@ SwTextGridPage::SwTextGridPage(Window *pParent, const SfxItemSet &rSet) :
XColorListRef pColorLst = XColorList::GetStdColorList(); XColorListRef pColorLst = XColorList::GetStdColorList();
m_pColorLB->InsertAutomaticEntryColor( Color( COL_AUTO ) ); 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 ); XColorEntry* pEntry = pColorLst->GetColor( i );
Color aColor = pEntry->GetColor(); Color aColor = pEntry->GetColor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment