summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 14:55:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 21:14:21 +0200
commit5e1719ff1ed5b4350684c3ed67b5375bb49e0223 (patch)
tree575fabb7266dcb1d94dfd260b765570e6c934529 /linguistic
parentda95fc2983e9deea30b9b7148a6e10b5423ed3e1 (diff)
loplugin:sequentialassign in linguistic..lotuswordpro
Change-Id: Ic561f56e1cfe06de219bd7a257186107b5c152fb Reviewed-on: https://gerrit.libreoffice.org/70706 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngsvcmgr.cxx3
-rw-r--r--linguistic/source/spelldta.cxx3
-rw-r--r--linguistic/source/thesdsp.cxx3
3 files changed, 3 insertions, 6 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 7b46b4af5eba..0c8e8e92f6d5 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -1704,8 +1704,7 @@ bool LngSvcMgr::SaveCfgSvcs( const OUString &rServiceName )
for (sal_Int32 i = 0; i < nLen; ++i)
{
- uno::Sequence< OUString > aSvcImplNames;
- aSvcImplNames = pDsp->GetServiceList( pLocale[i] );
+ uno::Sequence< OUString > aSvcImplNames = pDsp->GetServiceList( pLocale[i] );
// build value to be written back to configuration
uno::Any aCfgAny;
diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx
index b57a570b38d6..da7818d9acaf 100644
--- a/linguistic/source/spelldta.cxx
+++ b/linguistic/source/spelldta.cxx
@@ -125,8 +125,7 @@ void SeqRemoveNegEntries( std::vector< OUString > &rSeq,
{
std::vector< OUString > aNew;
// merge sequence without duplicates and empty strings in new empty sequence
- aNew = MergeProposalSeqs( aNew, rSeq );
- rSeq = aNew;
+ rSeq = MergeProposalSeqs( aNew, rSeq );
}
}
diff --git a/linguistic/source/thesdsp.cxx b/linguistic/source/thesdsp.cxx
index 3fdfe5c73da1..77522e0f77cd 100644
--- a/linguistic/source/thesdsp.cxx
+++ b/linguistic/source/thesdsp.cxx
@@ -122,8 +122,7 @@ Sequence< Reference< XMeaning > > SAL_CALL
if (pEntry)
{
- OUString aChkWord( rTerm );
- aChkWord = aChkWord.replace( SVT_HARD_SPACE, ' ' );
+ OUString aChkWord = rTerm.replace( SVT_HARD_SPACE, ' ' );
RemoveHyphens( aChkWord );
if (IsIgnoreControlChars( rProperties, GetPropSet() ))
RemoveControlChars( aChkWord );