summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh/wrtsh1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/wrtsh/wrtsh1.cxx')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 7601a5554332..669b23632179 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -1752,7 +1752,7 @@ void SwWrtShell::ChangeHeaderOrFooter(
StartUndo( UNDO_HEADER_FOOTER ); // #i7983#
bool bExecute = true;
bool bCrsrSet = false;
- for( sal_uInt16 nFrom = 0, nTo = GetPageDescCnt();
+ for( size_t nFrom = 0, nTo = GetPageDescCnt();
nFrom < nTo; ++nFrom )
{
SwPageDesc aDesc( GetPageDesc( nFrom ));
@@ -1805,7 +1805,7 @@ void SwWrtShell::ChangeHeaderOrFooter(
if ( !IsHeaderFooterEdit() )
ToggleHeaderFooterEdit();
bCrsrSet = SetCrsrInHdFt(
- rStyleName.isEmpty() ? (sal_uInt16)0xFFFF : nFrom,
+ rStyleName.isEmpty() ? SIZE_MAX : nFrom,
bHeader );
}
}