diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 14:18:43 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-16 18:13:33 +0200 |
commit | 8ec8bbcd4b1af73527859255d84af9f5990426bb (patch) | |
tree | cbb01125e13719c6c5134bf51de3e4bbff015b80 /sw/source/ui/dbui/mmoutputtypepage.cxx | |
parent | 9d98fadd5e943f4c3f87d0c269815c7a0feee217 (diff) |
Simplify vector initialization in sw
Change-Id: Ibded138d113e56b78b12c96c7ecd8258564627ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123701
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source/ui/dbui/mmoutputtypepage.cxx')
-rw-r--r-- | sw/source/ui/dbui/mmoutputtypepage.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx index 27026e86830f..e8c8e35bc3dc 100644 --- a/sw/source/ui/dbui/mmoutputtypepage.cxx +++ b/sw/source/ui/dbui/mmoutputtypepage.cxx @@ -232,9 +232,11 @@ SwSendMailDialog::SwSendMailDialog(weld::Window *pParent, SwMailMergeConfigItem& m_xStop->connect_clicked(LINK( this, SwSendMailDialog, StopHdl_Impl)); m_xCancel->connect_clicked(LINK( this, SwSendMailDialog, CancelHdl_Impl)); - std::vector<int> aWidths; - aWidths.push_back(m_xStatus->get_checkbox_column_width()); - aWidths.push_back(aSize.Width()/3 * 2); + std::vector<int> aWidths + { + o3tl::narrowing<int>(m_xStatus->get_checkbox_column_width()), + o3tl::narrowing<int>(aSize.Width()/3 * 2) + }; m_xStatus->set_column_fixed_widths(aWidths); m_xPaused->set_visible(false); |