From 1700fa84cd29c0f2d84d2af17cabb8e04b143ffe Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Tue, 12 May 2015 23:10:04 +0200 Subject: Use size_t consistently for GetFldTypeCount/GetFldType/RemoveFldType Change-Id: Ie88af20e20f788c0d8b53f99da3decd98dec5078 --- sw/source/uibase/fldui/fldmgr.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sw/source/uibase/fldui') diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx index a205c1515e9a..9cc7533df4e5 100644 --- a/sw/source/uibase/fldui/fldmgr.cxx +++ b/sw/source/uibase/fldui/fldmgr.cxx @@ -258,18 +258,18 @@ void SwFieldMgr::RemoveFieldType(sal_uInt16 nResId, const OUString& rName ) pSh->RemoveFieldType(nResId, rName); } -sal_uInt16 SwFieldMgr::GetFieldTypeCount(sal_uInt16 nResId) const +size_t SwFieldMgr::GetFieldTypeCount(sal_uInt16 nResId) const { SwWrtShell * pSh = pWrtShell ? pWrtShell : lcl_GetShell(); OSL_ENSURE(pSh, "no SwWrtShell found"); return pSh ? pSh->GetFieldTypeCount(nResId) : 0; } -SwFieldType* SwFieldMgr::GetFieldType(sal_uInt16 nResId, sal_uInt16 nId) const +SwFieldType* SwFieldMgr::GetFieldType(sal_uInt16 nResId, size_t nField) const { SwWrtShell * pSh = pWrtShell ? pWrtShell : lcl_GetShell(); OSL_ENSURE(pSh, "no SwWrtShell found"); - return pSh ? pSh->GetFieldType(nId, nResId) : 0; + return pSh ? pSh->GetFieldType(nField, nResId) : 0; } SwFieldType* SwFieldMgr::GetFieldType(sal_uInt16 nResId, const OUString& rName) const @@ -456,8 +456,8 @@ bool SwFieldMgr::GetSubTypes(sal_uInt16 nTypeId, std::vector& rToFill) case TYP_USERFLD: { - const sal_uInt16 nCount = pSh->GetFieldTypeCount(); - for(sal_uInt16 i = 0; i < nCount; ++i) + const size_t nCount = pSh->GetFieldTypeCount(); + for(size_t i = 0; i < nCount; ++i) { SwFieldType* pFieldType = pSh->GetFieldType( i ); const sal_uInt16 nWhich = pFieldType->Which(); -- cgit