diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appdispatchprovider.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/appl/xpackcreator.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/dialog/backingcomp.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/doc/ownsubfilterservice.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/view/frmload.cxx | 5 |
5 files changed, 5 insertions, 20 deletions
diff --git a/sfx2/source/appl/appdispatchprovider.cxx b/sfx2/source/appl/appdispatchprovider.cxx index ccca8d4be667..60d0cbefa21e 100644 --- a/sfx2/source/appl/appdispatchprovider.cxx +++ b/sfx2/source/appl/appdispatchprovider.cxx @@ -112,10 +112,7 @@ sal_Bool SAL_CALL SfxAppDispatchProvider::supportsService( const OUString& sServ css::uno::Sequence< OUString > SAL_CALL SfxAppDispatchProvider::getSupportedServiceNames() { - css::uno::Sequence< OUString > seqServiceNames( 2 ); - seqServiceNames.getArray()[0] = "com.sun.star.frame.ProtocolHandler"; - seqServiceNames.getArray()[1] = "com.sun.star.frame.AppDispatchProvider"; - return seqServiceNames; + return { "com.sun.star.frame.ProtocolHandler", "com.sun.star.frame.AppDispatchProvider" }; } Reference < XDispatch > SAL_CALL SfxAppDispatchProvider::queryDispatch( diff --git a/sfx2/source/appl/xpackcreator.cxx b/sfx2/source/appl/xpackcreator.cxx index 2434cabbef7c..607d4f0993cd 100644 --- a/sfx2/source/appl/xpackcreator.cxx +++ b/sfx2/source/appl/xpackcreator.cxx @@ -158,10 +158,7 @@ sal_Bool SAL_CALL OPackageStructureCreator::supportsService( const OUString& Ser uno::Sequence< OUString > SAL_CALL OPackageStructureCreator::getSupportedServiceNames() { - uno::Sequence< OUString > aRet(2); - aRet[0] = "com.sun.star.embed.PackageStructureCreator"; - aRet[1] = "com.sun.star.comp.embed.PackageStructureCreator"; - return aRet; + return { "com.sun.star.embed.PackageStructureCreator", "com.sun.star.comp.embed.PackageStructureCreator" }; } } diff --git a/sfx2/source/dialog/backingcomp.cxx b/sfx2/source/dialog/backingcomp.cxx index 2e36f8f18887..1de9a2daa698 100644 --- a/sfx2/source/dialog/backingcomp.cxx +++ b/sfx2/source/dialog/backingcomp.cxx @@ -281,10 +281,7 @@ sal_Bool SAL_CALL BackingComp::supportsService( /*IN*/ const OUString& sServiceN css::uno::Sequence< OUString > SAL_CALL BackingComp::getSupportedServiceNames() { - css::uno::Sequence< OUString > lNames(2); - lNames[0] = "com.sun.star.frame.StartModule"; - lNames[1] = "com.sun.star.frame.ProtocolHandler"; - return lNames; + return { "com.sun.star.frame.StartModule", "com.sun.star.frame.ProtocolHandler" }; } diff --git a/sfx2/source/doc/ownsubfilterservice.cxx b/sfx2/source/doc/ownsubfilterservice.cxx index abe4b5c63c44..598ff03bc18e 100644 --- a/sfx2/source/doc/ownsubfilterservice.cxx +++ b/sfx2/source/doc/ownsubfilterservice.cxx @@ -106,10 +106,7 @@ sal_Bool SAL_CALL OwnSubFilterService::supportsService( const OUString& ServiceN uno::Sequence< OUString > SAL_CALL OwnSubFilterService::getSupportedServiceNames() { - uno::Sequence< OUString > aRet(2); - aRet[0] = "com.sun.star.document.OwnSubFilter"; - aRet[1] = "com.sun.star.comp.document.OwnSubFilter"; - return aRet; + return { "com.sun.star.document.OwnSubFilter", "com.sun.star.comp.document.OwnSubFilter" }; } } diff --git a/sfx2/source/view/frmload.cxx b/sfx2/source/view/frmload.cxx index 499149c54b83..e6885694a944 100644 --- a/sfx2/source/view/frmload.cxx +++ b/sfx2/source/view/frmload.cxx @@ -765,10 +765,7 @@ sal_Bool SAL_CALL SfxFrameLoader_Impl::supportsService( const OUString& sService /* XServiceInfo */ Sequence< OUString > SAL_CALL SfxFrameLoader_Impl::getSupportedServiceNames() { - Sequence< OUString > seqServiceNames( 2 ); - seqServiceNames.getArray() [0] = "com.sun.star.frame.SynchronousFrameLoader"; - seqServiceNames.getArray() [1] = "com.sun.star.frame.OfficeFrameLoader"; - return seqServiceNames ; + return { "com.sun.star.frame.SynchronousFrameLoader", "com.sun.star.frame.OfficeFrameLoader" }; } } |