summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-04 14:13:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-05 06:42:40 +0000
commitff339c89b51ed571d55c762e43aa1a6ee9ada1cb (patch)
tree5ed1c9a8353037745ce49e5a97e696157a0dcbca /linguistic
parent3d6c84f2d9683b23c14fa5bf50ca4425cf4ceb04 (diff)
loplugin:constantparam part2
Change-Id: I7ec4c946be52a6b56aee908426f95ecacc7b0746 Reviewed-on: https://gerrit.libreoffice.org/36072 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/spelldsp.cxx2
-rw-r--r--linguistic/source/spelldta.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx
index faf31bf92fa6..848b45aa8e69 100644
--- a/linguistic/source/spelldsp.cxx
+++ b/linguistic/source/spelldsp.cxx
@@ -734,7 +734,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
// no xRes but Proposals found from the user-dictionaries.
// Thus we need to create an xRes...
xRes = new linguistic::SpellAlternatives( rWord, nLanguage,
- SpellFailure::IS_NEGATIVE_WORD, comphelper::containerToSequence(aProposals) );
+ comphelper::containerToSequence(aProposals) );
}
}
}
diff --git a/linguistic/source/spelldta.cxx b/linguistic/source/spelldta.cxx
index 65b7c97fc6ef..9b22be11b472 100644
--- a/linguistic/source/spelldta.cxx
+++ b/linguistic/source/spelldta.cxx
@@ -179,11 +179,11 @@ SpellAlternatives::SpellAlternatives()
SpellAlternatives::SpellAlternatives(
- const OUString &rWord, sal_Int16 nLang, sal_Int16 nFailureType,
+ const OUString &rWord, sal_Int16 nLang,
const Sequence< OUString > &rAlternatives ) :
aAlt (rAlternatives),
aWord (rWord),
- nType (nFailureType),
+ nType (SpellFailure::IS_NEGATIVE_WORD),
nLanguage (nLang)
{
}