[Libreoffice-commits] core.git: basctl/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 14 18:42:21 UTC 2021
basctl/source/basicide/baside2b.cxx | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
New commits:
commit 6aca0107c25b2cf0b26ed09c6ea3917e85542d54
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Fri May 14 09:58:13 2021 +0200
Commit: Julien Nabet <serval2412 at 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 <serval2412 at 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);
More information about the Libreoffice-commits
mailing list