summaryrefslogtreecommitdiff
path: root/lingucomponent/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-21 12:52:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-21 13:43:11 +0200
commitb2a574ec54c7e34789b401a540ff14511bf583ce (patch)
tree9387442f88605f52777d2c36894842f25603160d /lingucomponent/source
parent9cbb4052d11d8fc5b408cfe75ddb5305f9a7461b (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 'lingucomponent/source')
-rw-r--r--lingucomponent/source/languageguessing/guesslang.cxx3
-rw-r--r--lingucomponent/source/numbertext/numbertext.cxx6
2 files changed, 2 insertions, 7 deletions
diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx
index 8e2fc213d089..db8d67eaa6c1 100644
--- a/lingucomponent/source/languageguessing/guesslang.cxx
+++ b/lingucomponent/source/languageguessing/guesslang.cxx
@@ -328,8 +328,7 @@ Sequence<OUString> SAL_CALL LangGuess_Impl::getSupportedServiceNames( )
Sequence<OUString> LangGuess_Impl::getSupportedServiceNames_Static( )
{
- OUString aName( SERVICENAME );
- return Sequence< OUString >( &aName, 1 );
+ return { SERVICENAME };
}
/**
diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx
index 094920bf5802..58896ea41bf2 100644
--- a/lingucomponent/source/numbertext/numbertext.cxx
+++ b/lingucomponent/source/numbertext/numbertext.cxx
@@ -170,11 +170,7 @@ Sequence<OUString> SAL_CALL NumberText_Impl::getSupportedServiceNames()
return getSupportedServiceNames_Static();
}
-Sequence<OUString> NumberText_Impl::getSupportedServiceNames_Static()
-{
- OUString aName(SERVICENAME);
- return Sequence<OUString>(&aName, 1);
-}
+Sequence<OUString> NumberText_Impl::getSupportedServiceNames_Static() { return { SERVICENAME }; }
/**
* Function to create a new component instance; is needed by factory helper implementation.