diff options
Diffstat (limited to 'framework/source/uifactory/uicontrollerfactory.cxx')
-rw-r--r-- | framework/source/uifactory/uicontrollerfactory.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/framework/source/uifactory/uicontrollerfactory.cxx b/framework/source/uifactory/uicontrollerfactory.cxx index 4bc329910187..1d25f44b6f9e 100644 --- a/framework/source/uifactory/uicontrollerfactory.cxx +++ b/framework/source/uifactory/uicontrollerfactory.cxx @@ -263,8 +263,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq(1); - aSeq[0] = "com.sun.star.frame.PopupMenuControllerFactory"; + css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuControllerFactory" }; return aSeq; } @@ -315,8 +314,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq(1); - aSeq[0] = "com.sun.star.frame.ToolbarControllerFactory"; + css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ToolbarControllerFactory" }; return aSeq; } @@ -367,8 +365,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq(1); - aSeq[0] = "com.sun.star.frame.StatusbarControllerFactory"; + css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.StatusbarControllerFactory" }; return aSeq; } |