summaryrefslogtreecommitdiff
path: root/sw/source/ui/index/swuiidxmrk.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-18 15:05:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-20 08:19:48 +0200
commit0f34e96a5ce68a3039f65cd0f896b33f2d20af5f (patch)
tree2ea420b96865e6fe69bbbbc1915d3b1ac4c1e808 /sw/source/ui/index/swuiidxmrk.cxx
parentf05b0a6aaf8af5d78f9cad8bb953228cb0ce09f1 (diff)
return weld widgets by std::unique_ptr from builder
Change-Id: I20c007b13dae2d1155034711ad1ad48bfdfd0ba8 Reviewed-on: https://gerrit.libreoffice.org/59288 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/index/swuiidxmrk.cxx')
-rw-r--r--sw/source/ui/index/swuiidxmrk.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
index 81a76489fb10..dd1d887723e4 100644
--- a/sw/source/ui/index/swuiidxmrk.cxx
+++ b/sw/source/ui/index/swuiidxmrk.cxx
@@ -1517,7 +1517,7 @@ SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(weld::Window* pParent,
m_aFixedTexts.back()->show();
if( AUTH_FIELD_AUTHORITY_TYPE == aCurInfo.nToxField )
{
- m_xTypeListBox.reset(m_aBuilders.back()->weld_combo_box_text("listbox"));
+ m_xTypeListBox = m_aBuilders.back()->weld_combo_box_text("listbox");
if (bLeft)
m_aOrigContainers.back()->move(m_xTypeListBox.get(), m_xLeft.get());
else
@@ -1539,7 +1539,7 @@ SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(weld::Window* pParent,
}
else if(AUTH_FIELD_IDENTIFIER == aCurInfo.nToxField && !m_bNewEntryMode)
{
- m_xIdentifierBox.reset(m_aBuilders.back()->weld_combo_box_text("combobox"));
+ m_xIdentifierBox = m_aBuilders.back()->weld_combo_box_text("combobox");
if (bLeft)
m_aOrigContainers.back()->move(m_xIdentifierBox.get(), m_xLeft.get());
else
@@ -1567,7 +1567,7 @@ SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(weld::Window* pParent,
}
else
{
- pEdits[nIndex].reset(m_aBuilders.back()->weld_entry("entry"));
+ pEdits[nIndex] = m_aBuilders.back()->weld_entry("entry");
if (bLeft)
m_aOrigContainers.back()->move(pEdits[nIndex].get(), m_xLeft.get());
else