diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-20 18:56:00 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-27 14:00:42 +0200 |
commit | ec0d9fb97e7a8df3e065205440942ae3f77dda06 (patch) | |
tree | 4f894f40e285d179d12957be7e5dd1024c84bf5e /sw/source/ui | |
parent | 982babed5c7919999fd84e8ede37b421bceb5b2a (diff) |
Reduce scope
Change-Id: I616f55dbd7ce326336e1e037cf89e4b287022ff2
Diffstat (limited to 'sw/source/ui')
-rw-r--r-- | sw/source/ui/chrdlg/break.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/chrdlg/break.cxx b/sw/source/ui/chrdlg/break.cxx index 7ba9dd1ca1c0..53c2ab437f94 100644 --- a/sw/source/ui/chrdlg/break.cxx +++ b/sw/source/ui/chrdlg/break.cxx @@ -157,16 +157,14 @@ SwBreakDlg::SwBreakDlg( Window *pParent, SwWrtShell &rS ) // Insert page description to Listbox const sal_uInt16 nCount = rSh.GetPageDescCnt(); - sal_uInt16 i; - - for( i = 0; i < nCount; ++i) + for( sal_uInt16 i = 0; i < nCount; ++i) { const SwPageDesc &rPageDesc = rSh.GetPageDesc(i); ::InsertStringSorted(rPageDesc.GetName(), *m_pPageCollBox, 1 ); } OUString aFmtName; - for(i = RES_POOLPAGE_BEGIN; i < RES_POOLPAGE_END; ++i) + for(sal_uInt16 i = RES_POOLPAGE_BEGIN; i < RES_POOLPAGE_END; ++i) if(LISTBOX_ENTRY_NOTFOUND == m_pPageCollBox->GetEntryPos( aFmtName = SwStyleNameMapper::GetUIName( i, aFmtName ))) ::InsertStringSorted(aFmtName, *m_pPageCollBox, 1 ); |