basctl/source/basicide/baside2b.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
New commits: commit 6aca0107c25b2cf0b26ed09c6ea3917e85542d54 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Fri May 14 09:58:13 2021 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Fri May 14 20:41:33 2021 +0200 Directly initialize vectors in baside2b.cxx since we've got all the information from the beginning. Change-Id: I58dff3fea715af09f3027d92c0504c3e27015f1c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115584 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index ecba2d5fa873..5a1bae42fd93 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1640,14 +1640,9 @@ WatchWindow::WatchWindow(Layout* pParent) m_xTreeListBox->connect_changed( LINK( this, WatchWindow, TreeListHdl ) ); m_xTreeListBox->connect_expanding(LINK(this, WatchWindow, RequestingChildrenHdl)); - std::vector<int> aWidths; - std::vector<bool> aEditables; - aWidths.push_back(220); // VarTabWidth - aEditables.push_back(false); - aWidths.push_back(100); // ValueTabWidth - aEditables.push_back(true); - aWidths.push_back(1250); // TypeTabWidth - aEditables.push_back(false); + // VarTabWidth, ValueTabWidth, TypeTabWidth + std::vector<int> aWidths { 220, 100, 1250 }; + std::vector<bool> aEditables { false, true, false }; m_xTreeListBox->set_column_fixed_widths(aWidths); m_xTreeListBox->set_column_editables(aEditables); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits