diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-12-25 17:06:46 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-12-25 18:21:11 +0100 |
commit | 257ff5bea3a40646e7dae88f708c136be93ed1b2 (patch) | |
tree | 3bc51290ad3821f34f4de68d9596c795aa633562 /sw/source/uibase | |
parent | d07f0997c54e9cef31d996ebeb2aabfb4b4e0265 (diff) |
sal_uInt16 to size_t
Change-Id: I66239d89049f1386e5725e540c4dcc2b09c3ebf0
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/shells/frmsh.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index 9bae91524b67..72c476595168 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -94,8 +94,8 @@ using namespace ::com::sun::star::uno; static void lcl_FrmGetMaxLineWidth(const SvxBorderLine* pBorderLine, SvxBorderLine& rBorderLine); static const SwFrmFmt* lcl_GetFrmFmtByName(SwWrtShell& rSh, const OUString& rName) { - sal_uInt16 nCount = rSh.GetFlyCount(FLYCNTTYPE_FRM); - for( sal_uInt16 i = 0; i < nCount; i++) + const size_t nCount = rSh.GetFlyCount(FLYCNTTYPE_FRM); + for( size_t i = 0; i < nCount; ++i ) { const SwFrmFmt* pFmt = rSh.GetFlyNum(i, FLYCNTTYPE_FRM); if(pFmt->GetName() == rName) diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 3b4ebde35bc4..cdd36f1f9d2a 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -554,7 +554,7 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged) "MemberCount differs"); Point aNullPt; nMemberCount = pWrtShell->GetFlyCount(eType, /*bIgnoreTextBoxes=*/true); - for(sal_uInt16 i = 0; i < nMemberCount; i++) + for(size_t i = 0; i < nMemberCount; ++i) { const SwFrmFmt* pFrmFmt = pWrtShell->GetFlyNum(i,eType,/*bIgnoreTextBoxes=*/true); const OUString sFrmName = pFrmFmt->GetName(); |