diff options
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r-- | sw/source/uibase/uno/unodoc.cxx | 5 | ||||
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 8 |
2 files changed, 3 insertions, 10 deletions
diff --git a/sw/source/uibase/uno/unodoc.cxx b/sw/source/uibase/uno/unodoc.cxx index 80f3ca86e80a..aded8e90c06c 100644 --- a/sw/source/uibase/uno/unodoc.cxx +++ b/sw/source/uibase/uno/unodoc.cxx @@ -35,10 +35,7 @@ uno::Sequence< OUString > SAL_CALL SwTextDocument_getSupportedServiceNames() thr { // return only top level services here! All others must be // resolved by rtti! - uno::Sequence< OUString > aRet ( 1 ); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.text.TextDocument"; - + uno::Sequence< OUString > aRet { "com.sun.star.text.TextDocument" }; return aRet; } diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 546d3c40e0e5..2331a972cad4 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3771,9 +3771,7 @@ sal_Bool SwXLinkTargetSupplier::supportsService(const OUString& rServiceName) Sequence< OUString > SwXLinkTargetSupplier::getSupportedServiceNames() throw( RuntimeException, std::exception ) { - Sequence< OUString > aRet(1); - OUString* pNames = aRet.getArray(); - pNames[0] = "com.sun.star.document.LinkTargets"; + Sequence< OUString > aRet { "com.sun.star.document.LinkTargets" }; return aRet; } @@ -4059,9 +4057,7 @@ sal_Bool SwXLinkNameAccessWrapper::supportsService(const OUString& rServiceName) Sequence< OUString > SwXLinkNameAccessWrapper::getSupportedServiceNames() throw( RuntimeException, std::exception ) { - Sequence< OUString > aRet(1); - OUString* pNames = aRet.getArray(); - pNames[0] = "com.sun.star.document.LinkTargets"; + Sequence< OUString > aRet { "com.sun.star.document.LinkTargets" }; return aRet; } |