diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2019-09-24 17:37:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-25 09:28:31 +0200 |
commit | b13421011d9377676e1adc282634991d5064a866 (patch) | |
tree | e1e73c7c200fa119dd5860d65b6fa1a4cbb814ac /chart2 | |
parent | 4d960908094292c9bac925976ac489c46a6127e9 (diff) |
better data structures for some static const vars
use compact, cache-friendly structures for some static const stuff
and add a std::initialiser_list constructor to o3tl::sorted_vector
Change-Id: I6a6049bf19a7f48dae1843a81cd2257944ada9d5
Reviewed-on: https://gerrit.libreoffice.org/79470
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/CommandDispatchContainer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chart2/source/controller/main/CommandDispatchContainer.cxx b/chart2/source/controller/main/CommandDispatchContainer.cxx index 58fa1bcd04ce..5bc093282b4b 100644 --- a/chart2/source/controller/main/CommandDispatchContainer.cxx +++ b/chart2/source/controller/main/CommandDispatchContainer.cxx @@ -28,6 +28,8 @@ #include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/view/XSelectionSupplier.hpp> +#include <o3tl/sorted_vector.hxx> + using namespace ::com::sun::star; using ::com::sun::star::uno::Reference; @@ -67,7 +69,7 @@ void CommandDispatchContainer::setChartDispatch( Reference< frame::XDispatch > CommandDispatchContainer::getDispatchForURL( const util::URL & rURL ) { - static const std::set< OUString > s_aContainerDocumentCommands { + static const o3tl::sorted_vector< OUString > s_aContainerDocumentCommands { "AddDirect", "NewDoc", "Open", "Save", "SaveAs", "SendMail", "EditDoc", "ExportDirectToPDF", "PrintDefault"}; |