diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 12:15:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-01 15:16:58 +0100 |
commit | 3471d7eef30df7e2e1288b8c7708d3f3857c02ae (patch) | |
tree | 4c1d14ef45d5c2f219e70d31069cd222df1c222e /chart2/source/controller/main | |
parent | 6404ed19adf63180adf4bd082323ae4955aee8bf (diff) |
overly static
Diffstat (limited to 'chart2/source/controller/main')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 10 |
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; } |