summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-09 08:37:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-11 07:13:11 +0100
commitf011a01d4b1fc6fd9cdd4178dd2651a51cd897dc (patch)
tree3374e999e464f54c7bde5f2530067ae86cf0f4a0 /sc/source
parent87b44efa2a21279d22a3350b3a3d497284621d52 (diff)
loplugin:constantparam
Change-Id: Ibe167c208844b4cdd10df80ae804b1e5bfa6aa13 Reviewed-on: https://gerrit.libreoffice.org/68998 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/dbgui/scuiasciiopt.cxx2
-rw-r--r--sc/source/ui/inc/namemgrtable.hxx2
-rw-r--r--sc/source/ui/namedlg/namemgrtable.cxx6
3 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx
index 288842472a4b..8e3db03ccca0 100644
--- a/sc/source/ui/dbgui/scuiasciiopt.cxx
+++ b/sc/source/ui/dbgui/scuiasciiopt.cxx
@@ -475,7 +475,7 @@ ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatNa
pLbCharSet->SetSelectHdl( LINK( this, ScImportAsciiDlg, CharSetHdl ) );
pLbCustomLang->SetLanguageList(
- SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false);
+ SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false, false);
pLbCustomLang->InsertLanguage(LANGUAGE_SYSTEM);
pLbCustomLang->SelectLanguage(static_cast<LanguageType>(nLanguage));
diff --git a/sc/source/ui/inc/namemgrtable.hxx b/sc/source/ui/inc/namemgrtable.hxx
index 4bf8b879c840..f407a9c3a1a5 100644
--- a/sc/source/ui/inc/namemgrtable.hxx
+++ b/sc/source/ui/inc/namemgrtable.hxx
@@ -118,7 +118,7 @@ public:
int n_children() const { return m_xTreeView->n_children(); }
- void addEntry(const ScRangeNameLine& rLine, bool bSetCurEntry);
+ void addEntry(const ScRangeNameLine& rLine);
std::vector<ScRangeNameLine> GetSelectedEntries();
};
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index 246f213fd1dd..51d727963ff5 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -366,7 +366,7 @@ IMPL_LINK_NOARG(RangeManagerTable, SizeAllocHdl, const Size&, void)
CheckForFormulaString();
}
-void RangeManagerTable::addEntry(const ScRangeNameLine& rLine, bool bSetCurEntry)
+void RangeManagerTable::addEntry(const ScRangeNameLine& rLine)
{
int nRow = m_xTreeView->n_children();
m_xTreeView->append();
@@ -375,8 +375,6 @@ void RangeManagerTable::addEntry(const ScRangeNameLine& rLine, bool bSetCurEntry
m_xTreeView->set_text(nRow, rLine.aScope, 2);
// just unique to track which one has been cached by maCalculatedFormulaEntries
m_xTreeView->set_id(nRow, OUString::number(m_nId++));
- if (bSetCurEntry)
- m_xTreeView->set_cursor(nRow);
}
void RangeManagerTable::GetLine(ScRangeNameLine& rLine, weld::TreeIter& rEntry)
@@ -403,7 +401,7 @@ void RangeManagerTable::Init()
if (!rEntry.second->HasType(ScRangeData::Type::Database))
{
aLine.aName = rEntry.second->GetName();
- addEntry(aLine, false);
+ addEntry(aLine);
}
}
}