diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-19 11:47:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-20 08:26:28 +0200 |
commit | ea537ecffa217e8ca3039998926accf27f6b12c0 (patch) | |
tree | 9f6e28c9e53f70fa5981e01cb5181fba20851b44 /editeng | |
parent | d21d14c112312c639383ba9d9091380327dc0717 (diff) |
SvxSpellWrapper::ReplaceAll doesn't use it's second param
Change-Id: I79b82d37e6cf4c1dde474f0f90b6370c2359a0b3
Reviewed-on: https://gerrit.libreoffice.org/36673
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/edtspell.cxx | 3 | ||||
-rw-r--r-- | editeng/source/editeng/edtspell.hxx | 2 | ||||
-rw-r--r-- | editeng/source/misc/splwrap.cxx | 5 |
3 files changed, 4 insertions, 6 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx index dee67164f66e..cc4095f981e1 100644 --- a/editeng/source/editeng/edtspell.cxx +++ b/editeng/source/editeng/edtspell.cxx @@ -136,8 +136,7 @@ bool EditSpellWrapper::SpellMore() return bMore; } -void EditSpellWrapper::ReplaceAll( const OUString &rNewText, - sal_Int16 ) +void EditSpellWrapper::ReplaceAll( const OUString &rNewText ) { // Is called when the word is in ReplaceList of the spell checker pEditView->InsertText( rNewText ); diff --git a/editeng/source/editeng/edtspell.hxx b/editeng/source/editeng/edtspell.hxx index 1a2bca363b84..23105fb84425 100644 --- a/editeng/source/editeng/edtspell.hxx +++ b/editeng/source/editeng/edtspell.hxx @@ -46,7 +46,7 @@ private: protected: virtual void SpellStart( SvxSpellArea eArea ) override; virtual void SpellContinue() override; // Check area - virtual void ReplaceAll( const OUString &rNewText, sal_Int16 nLanguage ) override; + virtual void ReplaceAll( const OUString &rNewText ) override; virtual bool SpellMore() override; virtual bool HasOtherCnt() override; diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx index 0ae986e5258e..7c7169a9a53f 100644 --- a/editeng/source/misc/splwrap.cxx +++ b/editeng/source/misc/splwrap.cxx @@ -253,7 +253,7 @@ void SvxSpellWrapper::SpellContinue() { } -void SvxSpellWrapper::ReplaceAll( const OUString &, sal_Int16 ) +void SvxSpellWrapper::ReplaceAll( const OUString & ) { // Replace Word from the Replace list } @@ -471,8 +471,7 @@ bool SvxSpellWrapper::FindSpellError() if (xEntry.is()) { // replace word without asking - ReplaceAll( xEntry->getReplacementText(), - LanguageTag( xAlt->getLocale() ).getLanguageType() ); + ReplaceAll( xEntry->getReplacementText() ); } else bSpell = false; |