From 2b4fd256e9f8594c31e7e8045dccae5afdc62e16 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Jan 2016 13:43:57 +0200 Subject: loplugin:unusedmethods unused return value in sw/ Change-Id: Iaec71124b04ed678686d646df3ff0892585d3d50 --- sw/source/uibase/fldui/fldmgr.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sw/source/uibase/fldui') diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx index a4891b49626d..beab06be0f12 100644 --- a/sw/source/uibase/fldui/fldmgr.cxx +++ b/sw/source/uibase/fldui/fldmgr.cxx @@ -420,9 +420,8 @@ sal_uInt16 SwFieldMgr::GetPos(sal_uInt16 nTypeId) } // localise subtypes of a field -bool SwFieldMgr::GetSubTypes(sal_uInt16 nTypeId, std::vector& rToFill) +void SwFieldMgr::GetSubTypes(sal_uInt16 nTypeId, std::vector& rToFill) { - bool bRet = false; SwWrtShell *pSh = pWrtShell ? pWrtShell : lcl_GetShell(); OSL_ENSURE(pSh, "no SwWrtShell found"); if(pSh) @@ -519,9 +518,7 @@ bool SwFieldMgr::GetSubTypes(sal_uInt16 nTypeId, std::vector& rToFill) } } } - bRet = true; } - return bRet; } // determine format -- cgit