diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-09-09 21:29:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-11 07:15:55 +0000 |
commit | 78404fe5549fded2eaf0c5ea6e1ca66039e995af (patch) | |
tree | 7db55bee6c1ddaa19ef7364bb19dcb620abf1a72 /sc/source/ui/unoobj/datauno.cxx | |
parent | 7038a05224c88c58c5889dd1b7d70a8511f96f6a (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/datauno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/datauno.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index 2cd9e613273c..af738efb51fe 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -2173,11 +2173,8 @@ sal_Bool SAL_CALL ScDatabaseRangeObj::supportsService( const OUString& rServiceN uno::Sequence<OUString> SAL_CALL ScDatabaseRangeObj::getSupportedServiceNames() throw(uno::RuntimeException, std::exception) { - uno::Sequence<OUString> aRet(2); - OUString* pArray = aRet.getArray(); - pArray[0] = "com.sun.star.sheet.DatabaseRange"; - pArray[1] = SCLINKTARGET_SERVICE; - return aRet; + return {"com.sun.star.sheet.DatabaseRange", + SCLINKTARGET_SERVICE}; } ScDatabaseRangesObj::ScDatabaseRangesObj(ScDocShell* pDocSh) : |