diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-22 10:58:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-22 11:47:35 +0200 |
commit | 9585c8b8c8d8724cc1bad4a2060c828c15599929 (patch) | |
tree | 170c8fc738aa1ebfdd554b1faa0aac47e2dc4f64 /sw/source/uibase/utlui | |
parent | 23391fdb5cffb62006415ad1f4c96b6ed5d50cf8 (diff) |
loplugin:constantparam in sw
Change-Id: I56925a8fd776b3ee787cc26adbaa08c58dd022c0
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 1 | ||||
-rw-r--r-- | sw/source/uibase/utlui/gloslst.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/utlui/numfmtlb.cxx | 9 |
3 files changed, 3 insertions, 11 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 6280e001a199..36ecbb27c1a2 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -55,7 +55,6 @@ #include <IDocumentOutlineNodes.hxx> #include <unotools.hxx> #include <unotxvw.hxx> -#include <crsskip.hxx> #include <cmdid.h> #include <helpid.h> #include <navipi.hrc> diff --git a/sw/source/uibase/utlui/gloslst.cxx b/sw/source/uibase/utlui/gloslst.cxx index 3af10c9fd928..94678dee00ac 100644 --- a/sw/source/uibase/utlui/gloslst.cxx +++ b/sw/source/uibase/utlui/gloslst.cxx @@ -186,15 +186,13 @@ size_t SwGlossaryList::GetGroupCount() return aGroupArr.size(); } -OUString SwGlossaryList::GetGroupName(size_t nPos, bool bNoPath) +OUString SwGlossaryList::GetGroupName(size_t nPos) { OSL_ENSURE(aGroupArr.size() > nPos, "group not available"); if(nPos < aGroupArr.size()) { AutoTextGroup* pGroup = aGroupArr[nPos]; OUString sRet = pGroup->sName; - if(bNoPath) - sRet = sRet.getToken(0, GLOS_DELIM); return sRet; } return OUString(); diff --git a/sw/source/uibase/utlui/numfmtlb.cxx b/sw/source/uibase/utlui/numfmtlb.cxx index dc7d5eb4a118..0a535a8d6948 100644 --- a/sw/source/uibase/utlui/numfmtlb.cxx +++ b/sw/source/uibase/utlui/numfmtlb.cxx @@ -64,7 +64,7 @@ NumFormatListBox::NumFormatListBox(vcl::Window* pWin, WinBits nStyle) : bShowLanguageControl(false), bUseAutomaticLanguage(true) { - Init(css::util::NumberFormat::NUMBER, true); + Init(css::util::NumberFormat::NUMBER); } VCL_BUILDER_DECL_FACTORY(NumFormatListBox) @@ -86,7 +86,7 @@ VCL_BUILDER_DECL_FACTORY(NumFormatListBox) rRet = pListBox; } -void NumFormatListBox::Init(short nFormatType, bool bUsrFormats) +void NumFormatListBox::Init(short nFormatType) { SwView *pView = GetView(); @@ -95,11 +95,6 @@ void NumFormatListBox::Init(short nFormatType, bool bUsrFormats) else eCurLanguage = SvtSysLocale().GetLanguageTag().getLanguageType(); - if (!bUsrFormats) - { - pOwnFormatter = new SvNumberFormatter(comphelper::getProcessComponentContext(), eCurLanguage); - } - SetFormatType(nFormatType); SetDefFormat(nDefFormat); |