summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/ChartController.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/main/ChartController.cxx')
-rw-r--r--chart2/source/controller/main/ChartController.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index bd657e85a734..e95d50d0614a 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -1375,14 +1375,8 @@ uno::Sequence< ::rtl::OUString > SAL_CALL
ChartController::getAvailableServiceNames()
throw (uno::RuntimeException)
{
- static uno::Sequence< ::rtl::OUString > aServiceNames;
-
- if( aServiceNames.getLength() == 0 )
- {
- aServiceNames.realloc(1);
- aServiceNames[0] = CHART_ACCESSIBLE_TEXT_SERVICE_NAME;
- }
-
+ uno::Sequence< ::rtl::OUString > aServiceNames(1);
+ aServiceNames[0] = CHART_ACCESSIBLE_TEXT_SERVICE_NAME;
return aServiceNames;
}