summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-04-20 18:56:00 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-04-27 14:00:42 +0200
commitec0d9fb97e7a8df3e065205440942ae3f77dda06 (patch)
tree4f894f40e285d179d12957be7e5dd1024c84bf5e /sw
parentFix typo: cought => caught (diff)
downloadcore-ec0d9fb97e7a8df3e065205440942ae3f77dda06.tar.gz
core-ec0d9fb97e7a8df3e065205440942ae3f77dda06.zip
Reduce scope
Change-Id: I616f55dbd7ce326336e1e037cf89e4b287022ff2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/chrdlg/break.cxx6
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 );