diff options
Diffstat (limited to 'chart2/source/view/main/DummyXShape.cxx')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx index 3f5baf76b21d..544b272ea267 100644 --- a/chart2/source/view/main/DummyXShape.cxx +++ b/chart2/source/view/main/DummyXShape.cxx @@ -306,15 +306,10 @@ namespace { uno::Sequence< OUString > listSupportedServices() { - static uno::Sequence< OUString > aSupportedServices; - if(aSupportedServices.getLength() == 0) - { - aSupportedServices.realloc(3); - aSupportedServices[0] = "com.sun.star.drawing.Shape"; - aSupportedServices[1] = "com.sun.star.container.Named"; - aSupportedServices[2] = "com.sun.star.beans.PropertySet"; - } - + static const uno::Sequence< OUString > aSupportedServices{ + "com.sun.star.drawing.Shape", + "com.sun.star.container.Named", + "com.sun.star.beans.PropertySet"}; return aSupportedServices; } |