Kaydet (Commit) 352bb1fe authored tarafından Matteo Casalin's avatar Matteo Casalin

Constify some variables

Change-Id: Ibc513d125ce792170d9310359539ed4336b6dab6
üst 4fb4e733
...@@ -73,7 +73,7 @@ static void lcl_FillList( SwWrtShell& rSh, ComboBox& rSubRegions, ComboBox* pAva ...@@ -73,7 +73,7 @@ static void lcl_FillList( SwWrtShell& rSh, ComboBox& rSubRegions, ComboBox* pAva
const SwSectionFmt* pFmt; const SwSectionFmt* pFmt;
if( !pNewFmt ) if( !pNewFmt )
{ {
sal_uInt16 nCount = rSh.GetSectionFmtCount(); const sal_uInt16 nCount = rSh.GetSectionFmtCount();
for(sal_uInt16 i=0;i<nCount;i++) for(sal_uInt16 i=0;i<nCount;i++)
{ {
SectionType eTmpType; SectionType eTmpType;
...@@ -93,7 +93,7 @@ static void lcl_FillList( SwWrtShell& rSh, ComboBox& rSubRegions, ComboBox* pAva ...@@ -93,7 +93,7 @@ static void lcl_FillList( SwWrtShell& rSh, ComboBox& rSubRegions, ComboBox* pAva
else else
{ {
SwSections aTmpArr; SwSections aTmpArr;
sal_uInt16 nCnt = pNewFmt->GetChildSections(aTmpArr,SORTSECT_POS); const sal_uInt16 nCnt = pNewFmt->GetChildSections(aTmpArr,SORTSECT_POS);
if( nCnt ) if( nCnt )
{ {
SectionType eTmpType; SectionType eTmpType;
...@@ -452,7 +452,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE ...@@ -452,7 +452,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE
if (!pFmt) if (!pFmt)
{ {
sal_uInt16 nCount=rSh.GetSectionFmtCount(); const sal_uInt16 nCount=rSh.GetSectionFmtCount();
for ( sal_uInt16 n=0; n < nCount; n++ ) for ( sal_uInt16 n=0; n < nCount; n++ )
{ {
SectionType eTmpType; SectionType eTmpType;
...@@ -478,7 +478,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE ...@@ -478,7 +478,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE
{ {
SwSections aTmpArr; SwSections aTmpArr;
SvTreeListEntry* pNEntry; SvTreeListEntry* pNEntry;
sal_uInt16 nCnt = pFmt->GetChildSections(aTmpArr,SORTSECT_POS); const sal_uInt16 nCnt = pFmt->GetChildSections(aTmpArr,SORTSECT_POS);
if( nCnt ) if( nCnt )
{ {
for( sal_uInt16 n = 0; n < nCnt; ++n ) for( sal_uInt16 n = 0; n < nCnt; ++n )
...@@ -515,7 +515,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE ...@@ -515,7 +515,7 @@ void SwEditRegionDlg::RecurseList( const SwSectionFmt* pFmt, SvTreeListEntry* pE
sal_uInt16 SwEditRegionDlg::FindArrPos(const SwSectionFmt* pFmt ) 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++) for (sal_uInt16 i=0;i<nCount;i++)
if (pFmt==&rSh.GetSectionFmt(i)) if (pFmt==&rSh.GetSectionFmt(i))
return i; return i;
...@@ -808,7 +808,7 @@ IMPL_LINK_NOARG(SwEditRegionDlg, OkHdl) ...@@ -808,7 +808,7 @@ IMPL_LINK_NOARG(SwEditRegionDlg, OkHdl)
for (SectReprArr::reverse_iterator aI = aSectReprArr.rbegin(), aEnd = aSectReprArr.rend(); aI != aEnd; ++aI) for (SectReprArr::reverse_iterator aI = aSectReprArr.rbegin(), aEnd = aSectReprArr.rend(); aI != aEnd; ++aI)
{ {
SwSectionFmt* pFmt = aOrigArray[ aI->GetArrPos() ]; SwSectionFmt* pFmt = aOrigArray[ aI->GetArrPos() ];
sal_uInt16 nNewPos = rDocFmts.GetPos( pFmt ); const sal_uInt16 nNewPos = rDocFmts.GetPos( pFmt );
if( USHRT_MAX != nNewPos ) if( USHRT_MAX != nNewPos )
rSh.DelSectionFmt( nNewPos ); rSh.DelSectionFmt( nNewPos );
} }
...@@ -1979,7 +1979,7 @@ void SwSectionFtnEndTabPage::ResetState( sal_Bool bFtn, ...@@ -1979,7 +1979,7 @@ void SwSectionFtnEndTabPage::ResetState( sal_Bool bFtn,
pOffsetFld = pEndOffsetFld; pOffsetFld = pEndOffsetFld;
} }
sal_uInt16 eState = rAttr.GetValue(); const sal_uInt16 eState = rAttr.GetValue();
switch( eState ) switch( eState )
{ {
case FTNEND_ATTXTEND_OWNNUMANDFMT: case FTNEND_ATTXTEND_OWNNUMANDFMT:
......
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