[Libreoffice-commits] core.git: sw/source
Noel Grandin
noel at peralex.com
Mon Jul 25 05:49:53 UTC 2016
sw/source/ui/config/optload.cxx | 4 ++--
sw/source/uibase/inc/swlbox.hxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit b0b6d4cf70d7ed0eb4b656d0ef1fdeb1c60eae28
Author: Noel Grandin <noel at peralex.com>
Date: Mon Jul 25 07:47:46 2016 +0200
inconsistent default param override in SwComboBox::InsertEntry
Change-Id: Ica9f876747e039c1dfbac1f15db668724a49d096
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index 4fa9271..41c215a 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -700,7 +700,7 @@ IMPL_LINK_NOARG_TYPED(SwCaptionOptPage, ShowEntryHdl, SvTreeListBox*, void)
InsCaptionOpt* pOpt = static_cast<InsCaptionOpt*>(pSelEntry->GetUserData());
m_pCategoryBox->Clear();
- m_pCategoryBox->InsertEntry(m_sNone);
+ m_pCategoryBox->InsertEntry(m_sNone, 0);
if (pSh)
{
const size_t nCount = pMgr->GetFieldTypeCount();
@@ -727,7 +727,7 @@ IMPL_LINK_NOARG_TYPED(SwCaptionOptPage, ShowEntryHdl, SvTreeListBox*, void)
m_pCategoryBox->SetText(m_sNone);
if (!pOpt->GetCategory().isEmpty() &&
m_pCategoryBox->GetEntryPos(pOpt->GetCategory()) == COMBOBOX_ENTRY_NOTFOUND)
- m_pCategoryBox->InsertEntry(pOpt->GetCategory());
+ m_pCategoryBox->InsertEntry(pOpt->GetCategory(), 0);
if (m_pCategoryBox->GetText().isEmpty())
{
sal_Int32 nPos = 0;
diff --git a/sw/source/uibase/inc/swlbox.hxx b/sw/source/uibase/inc/swlbox.hxx
index 94997a3..3eb4860 100644
--- a/sw/source/uibase/inc/swlbox.hxx
+++ b/sw/source/uibase/inc/swlbox.hxx
@@ -60,7 +60,7 @@ public:
virtual ~SwComboBox();
void InsertSwEntry(const SwBoxEntry&);
- virtual sal_Int32 InsertEntry(const OUString& rStr, sal_Int32 = 0) override;
+ virtual sal_Int32 InsertEntry(const OUString& rStr, sal_Int32 = COMBOBOX_APPEND) override;
virtual void RemoveEntryAt(sal_Int32 nPos) override;
More information about the Libreoffice-commits
mailing list