summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-30 14:43:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-01 17:27:18 +0200
commitdbb4df8568726173f69297611936976ff354c2cf (patch)
tree0ede59204279cf9af3a5d8e94bd031913b6649ef /vcl/source/app
parent157aff3edbfc6f937cc2e51ed48f01e9c00d3a4a (diff)
weld ScShowTabDlg
Change-Id: Ice5da193d0efbf8e4a61d68c0fcef90f6c6d8e78 Reviewed-on: https://gerrit.libreoffice.org/53665 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index c2f4312aa371..1805559ee3ad 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1260,17 +1260,14 @@ public:
m_xTreeView->SelectEntryPos(pos);
}
- virtual OUString get_selected() const override
+ virtual std::vector<int> get_selected_rows() const override
{
- return m_xTreeView->GetSelectedEntry();
- }
-
- virtual std::vector<OUString> get_selected_rows() const override
- {
- std::vector<OUString> aRows;
+ std::vector<int> aRows;
- for (sal_Int32 i = 0; i < m_xTreeView->GetSelectedEntryCount(); ++i)
- aRows.push_back(m_xTreeView->GetSelectedEntry(i));
+ sal_Int32 nCount = m_xTreeView->GetSelectedEntryCount();
+ aRows.reserve(nCount);
+ for (sal_Int32 i = 0; i < nCount; ++i)
+ aRows.push_back(m_xTreeView->GetSelectedEntryPos(i));
return aRows;
}