summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/nameuno.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-09 21:29:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-11 07:15:55 +0000
commit78404fe5549fded2eaf0c5ea6e1ca66039e995af (patch)
tree7db55bee6c1ddaa19ef7364bb19dcb620abf1a72 /sc/source/ui/unoobj/nameuno.cxx
parent7038a05224c88c58c5889dd1b7d70a8511f96f6a (diff)
tdf#88205 use list ctor for uno::Sequence<OUString> in sc
Change-Id: Icda2d7a2f16fbcdf3a1e796026540bfa568be2d9 Reviewed-on: https://gerrit.libreoffice.org/28800 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/unoobj/nameuno.cxx')
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index fa61a677e211..f58b10adbd0d 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -435,10 +435,7 @@ sal_Bool SAL_CALL ScNamedRangeObj::supportsService( const OUString& rServiceName
uno::Sequence<OUString> SAL_CALL ScNamedRangeObj::getSupportedServiceNames()
throw(uno::RuntimeException, std::exception)
{
- uno::Sequence<OUString> aRet(2);
- aRet[0] = SCNAMEDRANGEOBJ_SERVICE;
- aRet[1] = SCLINKTARGET_SERVICE;
- return aRet;
+ return {SCNAMEDRANGEOBJ_SERVICE, SCLINKTARGET_SERVICE};
}
// XUnoTunnel