diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-21 12:52:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-21 13:43:11 +0200 |
commit | b2a574ec54c7e34789b401a540ff14511bf583ce (patch) | |
tree | 9387442f88605f52777d2c36894842f25603160d /svtools | |
parent | 9cbb4052d11d8fc5b408cfe75ddb5305f9a7461b (diff) |
simplify some getSupportedServiceNames
Change-Id: I81195505d6006b6587f7b98c1545919083f0e588
Reviewed-on: https://gerrit.libreoffice.org/74497
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/accessibleruler.cxx | 2 | ||||
-rw-r--r-- | svtools/source/uno/unoimap.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/control/accessibleruler.cxx b/svtools/source/control/accessibleruler.cxx index b41aedd7f575..80502f069b25 100644 --- a/svtools/source/control/accessibleruler.cxx +++ b/svtools/source/control/accessibleruler.cxx @@ -313,7 +313,7 @@ sal_Bool SAL_CALL SvtRulerAccessible::supportsService( const OUString& sServiceN Sequence< OUString > SAL_CALL SvtRulerAccessible::getSupportedServiceNames() { - return Sequence< OUString > { OUString("com.sun.star.accessibility.AccessibleContext") }; + return { "com.sun.star.accessibility.AccessibleContext" }; } //===== XTypeProvider ======================================================= diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx index cc0c223c3f9d..cba13aef070d 100644 --- a/svtools/source/uno/unoimap.cxx +++ b/svtools/source/uno/unoimap.cxx @@ -660,8 +660,7 @@ sal_Bool SAL_CALL SvUnoImageMap::supportsService( const OUString& ServiceName ) Sequence< OUString > SAL_CALL SvUnoImageMap::getSupportedServiceNames( ) { - const OUString aSN( "com.sun.star.image.ImageMap" ); - return Sequence< OUString >( &aSN, 1 ); + return { "com.sun.star.image.ImageMap" }; } void SvUnoImageMap::fillImageMap( ImageMap& rMap ) const |