diff options
5 files changed, 5 insertions, 10 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx index 20c62780f6b8..610eed6be2a1 100644 --- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx @@ -95,8 +95,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ModuleUIConfigurationManager" }; - return aSeq; + return {"com.sun.star.ui.ModuleUIConfigurationManager"}; } // XComponent diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx index 33b7cd1a7ad0..b798e2e0c553 100644 --- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx @@ -80,8 +80,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UIConfigurationManager" }; - return aSeq; + return {"com.sun.star.ui.UIConfigurationManager"}; } explicit UIConfigurationManager( const css::uno::Reference< css::uno::XComponentContext > & rxContext ); diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx index cc2a6052396d..614df9f71df0 100644 --- a/framework/source/uiconfiguration/windowstateconfiguration.cxx +++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx @@ -1284,8 +1284,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.WindowStateConfiguration" }; - return aSeq; + return {"com.sun.star.ui.WindowStateConfiguration"}; } // XNameAccess diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx index a124f2eecc57..c5492482b22a 100644 --- a/framework/source/uielement/controlmenucontroller.cxx +++ b/framework/source/uielement/controlmenucontroller.cxx @@ -197,8 +197,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" }; - return aSeq; + return {"com.sun.star.frame.PopupMenuController"}; } // XPopupMenuController diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx index 786ef69a44bd..0c9f54d6ee21 100644 --- a/framework/source/uielement/recentfilesmenucontroller.cxx +++ b/framework/source/uielement/recentfilesmenucontroller.cxx @@ -79,8 +79,7 @@ public: virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override { - css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" }; - return aSeq; + return {"com.sun.star.frame.PopupMenuController"}; } // XStatusListener |