summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-08 21:39:34 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-09 10:49:26 +0200
commit7af40a445551a07c6918f835da20ca461a6bd4ee (patch)
tree3f6816c85dd0e4008dc022e6e0a37079d7590881 /linguistic
parent07a09195adc65722207390e355a202100bc608ff (diff)
Simplify Sequences initializations (i*->p*)
Change-Id: I6bf0eaa2233de2487d90a2f9ae7de263b4ddf1bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116865 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/gciterator.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 692fa31353cb..70257b32d96c 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -1151,8 +1151,6 @@ uno::Sequence< OUString > GrammarCheckingIterator::GetServiceList(
{
::osl::Guard< ::osl::Mutex > aGuard( MyMutex::get() );
- uno::Sequence< OUString > aRes(1);
-
OUString aImplName; // there is only one grammar checker per language
LanguageType nLang = LinguLocaleToLanguage( rLocale );
GCImplNames_t::const_iterator aIt( m_aGCImplNamesByLang.find( nLang ) );
@@ -1160,11 +1158,8 @@ uno::Sequence< OUString > GrammarCheckingIterator::GetServiceList(
aImplName = aIt->second;
if (!aImplName.isEmpty())
- aRes[0] = aImplName;
- else
- aRes.realloc(0);
-
- return aRes;
+ return { aImplName };
+ return {};
}