diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-25 09:18:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-25 09:18:12 +0200 |
commit | b2e2400736cbc5fc7e21edbe968f888566de9237 (patch) | |
tree | 6b14f72370d9392c6418ba9f732ef86835f220a0 /chart2/source/controller/main/ChartController.cxx | |
parent | 668e3d422c6f87a534911a7884bd22fac47c4262 (diff) |
no need to copy the list of available commands on every call
Change-Id: I131f34a94c998f3dd9fd7a457fb213778040c771
Diffstat (limited to 'chart2/source/controller/main/ChartController.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 609c3973f0af..252698eefb09 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -1570,9 +1570,9 @@ void ChartController::impl_initializeAccessible( const uno::Reference< lang::XIn } } -::std::set< OUString > ChartController::impl_getAvailableCommands() +const ::std::set< OUString >& ChartController::impl_getAvailableCommands() { - return { + static ::std::set< OUString > s_AvailableCommands { // commands for container forward "AddDirect", "NewDoc", "Open", "Save", "SaveAs", "SendMail", @@ -1635,6 +1635,7 @@ void ChartController::impl_initializeAccessible( const uno::Reference< lang::XIn "ArrangeRow", "StatusBarVisible", "ChartElementSelector"}; + return s_AvailableCommands; } ViewElementListProvider ChartController::getViewElementListProvider() |