diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-03 17:40:06 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-06 22:12:50 +0200 |
commit | 352bb1fe2cd64464e8b1abcc7103f7a5e7a5898b (patch) | |
tree | 2b7e545cdc5280fd7516a27e63a3a27b7a58ddac /sw | |
parent | 4fb4e733f31aebf9875135507a8fa9942ec733c8 (diff) |
Constify some variables
Change-Id: Ibc513d125ce792170d9310359539ed4336b6dab6
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/dialog/uiregionsw.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/ui/dialog/uiregionsw.cxx b/sw/source/ui/dialog/uiregionsw.cxx index cafe6f1fedce..c91058ab3f52 100644 --- a/sw/source/ui/dialog/uiregionsw.cxx +++ b/sw/source/ui/dialog/uiregionsw.cxx @@ -73,7 +73,7 @@ static void lcl_FillList( SwWrtShell& rSh, ComboBox& rSubRegions, ComboBox* pAva const SwSectionFmt* pFmt; if( !pNewFmt ) { - sal_uInt16 nCount = rSh.GetSectionFmtCount(); + const sal_uInt16 nCount = rSh.GetSectionFmtCount(); for(sal_uInt16 i=0;i<nCount;i++) { SectionType eTmpType; @@ -93,7 +93,7 @@ static void lcl_FillList( SwWrtShell& rSh, ComboBox& rSubRegions, ComboBox* pAva else { SwSections aTmpArr; - sal_uInt16 nCnt = pNewFmt->GetChildSections(aTmpArr,SORTSECT_POS); + const sal_uInt16 nCnt = pNewFmt->GetChildSections(aTmpArr,SORTSECT_POS); if( nCnt ) { SectionType eTmpType; @@ -452,7 +452,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE if (!pFmt) { - sal_uInt16 nCount=rSh.GetSectionFmtCount(); + const sal_uInt16 nCount=rSh.GetSectionFmtCount(); for ( sal_uInt16 n=0; n < nCount; n++ ) { SectionType eTmpType; @@ -478,7 +478,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE { SwSections aTmpArr; SvTreeListEntry* pNEntry; - sal_uInt16 nCnt = pFmt->GetChildSections(aTmpArr,SORTSECT_POS); + const sal_uInt16 nCnt = pFmt->GetChildSections(aTmpArr,SORTSECT_POS); if( nCnt ) { for( sal_uInt16 n = 0; n < nCnt; ++n ) @@ -515,7 +515,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE sal_uInt16 SwEditRegionDlg::FindArrPos(const SwSectionFmt* pFmt ) { - sal_uInt16 nCount=rSh.GetSectionFmtCount(); + const sal_uInt16 nCount=rSh.GetSectionFmtCount(); for (sal_uInt16 i=0;i<nCount;i++) if (pFmt==&rSh.GetSectionFmt(i)) return i; @@ -808,7 +808,7 @@ IMPL_LINK_NOARG(SwEditRegionDlg, OkHdl) for (SectReprArr::reverse_iterator aI = aSectReprArr.rbegin(), aEnd = aSectReprArr.rend(); aI != aEnd; ++aI) { SwSectionFmt* pFmt = aOrigArray[ aI->GetArrPos() ]; - sal_uInt16 nNewPos = rDocFmts.GetPos( pFmt ); + const sal_uInt16 nNewPos = rDocFmts.GetPos( pFmt ); if( USHRT_MAX != nNewPos ) rSh.DelSectionFmt( nNewPos ); } @@ -1979,7 +1979,7 @@ void SwSectionFtnEndTabPage::ResetState( sal_Bool bFtn, pOffsetFld = pEndOffsetFld; } - sal_uInt16 eState = rAttr.GetValue(); + const sal_uInt16 eState = rAttr.GetValue(); switch( eState ) { case FTNEND_ATTXTEND_OWNNUMANDFMT: |