summaryrefslogtreecommitdiff
path: root/sw/source/uibase/fldui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-26 15:25:53 +0200
committerNoel Grandin <noel@peralex.com>2016-02-29 08:04:06 +0200
commit2ac1c2f75e5f020fbb8c2c98b00ef32faa4770aa (patch)
tree460a51ff7aadb0e7fcdcbf56041852b61c1288ff /sw/source/uibase/fldui
parent83911dd753fbfd0328bae2dfa37d19f514d4b2f9 (diff)
loplugin:unuseddefaultparam in sw (part1)
Change-Id: I08b57f3b30e2f1892da54965a0f53de00363b8bd
Diffstat (limited to 'sw/source/uibase/fldui')
-rw-r--r--sw/source/uibase/fldui/fldmgr.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx
index beab06be0f12..b8aed6cec604 100644
--- a/sw/source/uibase/fldui/fldmgr.cxx
+++ b/sw/source/uibase/fldui/fldmgr.cxx
@@ -257,11 +257,11 @@ void SwFieldMgr::RemoveFieldType(sal_uInt16 nResId, const OUString& rName )
pSh->RemoveFieldType(nResId, rName);
}
-size_t SwFieldMgr::GetFieldTypeCount(sal_uInt16 nResId) const
+size_t SwFieldMgr::GetFieldTypeCount() const
{
SwWrtShell * pSh = pWrtShell ? pWrtShell : lcl_GetShell();
OSL_ENSURE(pSh, "no SwWrtShell found");
- return pSh ? pSh->GetFieldTypeCount(nResId) : 0;
+ return pSh ? pSh->GetFieldTypeCount() : 0;
}
SwFieldType* SwFieldMgr::GetFieldType(sal_uInt16 nResId, size_t nField) const
@@ -1651,7 +1651,7 @@ void SwFieldMgr::SetMacroPath(const OUString& rPath)
}
}
-sal_uLong SwFieldMgr::GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumberFormatter* pFormatter, double* pVal)
+sal_uLong SwFieldMgr::GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumberFormatter* pFormatter)
{
double fValue;
short nDefFormat;
@@ -1691,9 +1691,6 @@ sal_uLong SwFieldMgr::GetDefaultFormat(sal_uInt16 nTypeId, bool bIsText, SvNumbe
break;
}
- if (pVal)
- *pVal = fValue;
-
return pFormatter->GetStandardFormat(nDefFormat, GetCurrLanguage());
}