diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-05-14 09:58:13 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-05-14 20:41:33 +0200 |
commit | 6aca0107c25b2cf0b26ed09c6ea3917e85542d54 (patch) | |
tree | 7cd2e8c99710860a9b5340d42ddc9e05c8b2c087 /basctl | |
parent | ec996f7fc26601a6b5bf2ea12890316905662e40 (diff) |
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@yahoo.fr>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
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); |