summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r--sw/source/ui/misc/bookmark.cxx7
-rw-r--r--sw/source/ui/misc/glosbib.cxx4
2 files changed, 2 insertions, 9 deletions
diff --git a/sw/source/ui/misc/bookmark.cxx b/sw/source/ui/misc/bookmark.cxx
index 54538bd502ff..77ff0b3bbd49 100644
--- a/sw/source/ui/misc/bookmark.cxx
+++ b/sw/source/ui/misc/bookmark.cxx
@@ -388,12 +388,7 @@ BookmarkTable::BookmarkTable(std::unique_ptr<weld::TreeView> xControl)
: m_xControl(std::move(xControl))
{
m_xControl->set_size_request(450, 250);
- std::vector<int> aWidths;
- aWidths.push_back(40);
- aWidths.push_back(110);
- aWidths.push_back(150);
- aWidths.push_back(60);
- m_xControl->set_column_fixed_widths(aWidths);
+ m_xControl->set_column_fixed_widths({ 40, 110, 150, 160 });
m_xControl->set_selection_mode(SelectionMode::Multiple);
}
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx
index c32605370b06..036ca954e680 100644
--- a/sw/source/ui/misc/glosbib.cxx
+++ b/sw/source/ui/misc/glosbib.cxx
@@ -57,9 +57,7 @@ SwGlossaryGroupDlg::SwGlossaryGroupDlg(weld::Window * pParent,
//just has to be something small, real size will be available space
m_xGroupTLB->set_size_request(nWidth, m_xGroupTLB->get_height_rows(10));
- std::vector<int> aWidths;
- aWidths.push_back(nWidth);
- m_xGroupTLB->set_column_fixed_widths(aWidths);
+ m_xGroupTLB->set_column_fixed_widths( { nWidth } );
m_xGroupTLB->connect_changed(LINK(this, SwGlossaryGroupDlg, SelectHdl));
m_xNewPB->connect_clicked(LINK(this, SwGlossaryGroupDlg, NewHdl));