summaryrefslogtreecommitdiff
path: root/sw/source/uibase/fldui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-22 10:58:54 +0200
committerNoel Grandin <noel@peralex.com>2016-03-22 11:47:35 +0200
commit9585c8b8c8d8724cc1bad4a2060c828c15599929 (patch)
tree170c8fc738aa1ebfdd554b1faa0aac47e2dc4f64 /sw/source/uibase/fldui
parent23391fdb5cffb62006415ad1f4c96b6ed5d50cf8 (diff)
loplugin:constantparam in sw
Change-Id: I56925a8fd776b3ee787cc26adbaa08c58dd022c0
Diffstat (limited to 'sw/source/uibase/fldui')
-rw-r--r--sw/source/uibase/fldui/fldmgr.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index 02cf4a75015a..a25ea0615ca4 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -72,7 +72,6 @@
#include <authfld.hxx>
#include <flddat.hxx>
#include <fldmgr.hxx>
-#include <crsskip.hxx>
#include <flddropdown.hxx>
#include <fldui.hrc>
#include <tox.hxx>
@@ -523,7 +522,7 @@ void SwFieldMgr::GetSubTypes(sal_uInt16 nTypeId, std::vector<OUString>& rToFill)
// determine format
// ACCESS over TYP_....
-sal_uInt16 SwFieldMgr::GetFormatCount(sal_uInt16 nTypeId, bool bIsText, bool bHtmlMode) const
+sal_uInt16 SwFieldMgr::GetFormatCount(sal_uInt16 nTypeId, bool bHtmlMode) const
{
OSL_ENSURE(nTypeId < TYP_END, "forbidden TypeId");
{
@@ -535,9 +534,6 @@ sal_uInt16 SwFieldMgr::GetFormatCount(sal_uInt16 nTypeId, bool bIsText, bool bHt
sal_uLong nStart = aSwFields[nPos].nFormatBegin;
sal_uLong nEnd = aSwFields[nPos].nFormatEnd;
- if (bIsText && nEnd - nStart >= 2)
- return 2;
-
if (nTypeId == TYP_FILENAMEFLD)
nEnd -= 2; // no range or template