summaryrefslogtreecommitdiff
path: root/extensions/source/dbpilots
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-03 13:04:59 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-03 11:39:56 +0000
commit5adde1bf69828da955f5f8ae8d36a4bd52eee055 (patch)
tree19b20375684dd8bb328ceb59a7b035ad7d352bd9 /extensions/source/dbpilots
parent83dccbadc2c6caa804039199915d4a8c1f3f2d5a (diff)
loplugin:unuseddefaultparams various
Change-Id: Ibf8489c957b307156689de4c7cb8440ddd4e4546 Reviewed-on: https://gerrit.libreoffice.org/22852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions/source/dbpilots')
-rw-r--r--extensions/source/dbpilots/controlwizard.cxx10
-rw-r--r--extensions/source/dbpilots/controlwizard.hxx6
2 files changed, 6 insertions, 10 deletions
diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx
index 2e8f25329dbb..f220adb5a75b 100644
--- a/extensions/source/dbpilots/controlwizard.cxx
+++ b/extensions/source/dbpilots/controlwizard.cxx
@@ -135,10 +135,9 @@ namespace dbp
}
- void OControlWizardPage::fillListBox(ListBox& _rList, const Sequence< OUString >& _rItems, bool _bClear)
+ void OControlWizardPage::fillListBox(ListBox& _rList, const Sequence< OUString >& _rItems)
{
- if (_bClear)
- _rList.Clear();
+ _rList.Clear();
const OUString* pItems = _rItems.getConstArray();
const OUString* pEnd = pItems + _rItems.getLength();
::svt::WizardTypes::WizardState nPos;
@@ -151,10 +150,9 @@ namespace dbp
}
- void OControlWizardPage::fillListBox(ComboBox& _rList, const Sequence< OUString >& _rItems, bool _bClear)
+ void OControlWizardPage::fillListBox(ComboBox& _rList, const Sequence< OUString >& _rItems)
{
- if (_bClear)
- _rList.Clear();
+ _rList.Clear();
const OUString* pItems = _rItems.getConstArray();
const OUString* pEnd = pItems + _rItems.getLength();
::svt::WizardTypes::WizardState nPos;
diff --git a/extensions/source/dbpilots/controlwizard.hxx b/extensions/source/dbpilots/controlwizard.hxx
index 51ca221d9e8d..3f2e44daa090 100644
--- a/extensions/source/dbpilots/controlwizard.hxx
+++ b/extensions/source/dbpilots/controlwizard.hxx
@@ -72,12 +72,10 @@ namespace dbp
protected:
static void fillListBox(
ListBox& _rList,
- const css::uno::Sequence< OUString >& _rItems,
- bool _bClear = true);
+ const css::uno::Sequence< OUString >& _rItems);
static void fillListBox(
ComboBox& _rList,
- const css::uno::Sequence< OUString >& _rItems,
- bool _bClear = true);
+ const css::uno::Sequence< OUString >& _rItems);
protected:
void enableFormDatasourceDisplay();