editeng/source/editeng/edtspell.cxx | 3 +-- editeng/source/editeng/edtspell.hxx | 2 +- editeng/source/misc/splwrap.cxx | 5 ++--- include/editeng/splwrap.hxx | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-)
New commits: commit ea537ecffa217e8ca3039998926accf27f6b12c0 Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Wed Apr 19 11:47:44 2017 +0200 SvxSpellWrapper::ReplaceAll doesn't use it's second param Change-Id: I79b82d37e6cf4c1dde474f0f90b6370c2359a0b3 Reviewed-on: https://gerrit.libreoffice.org/36673 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> 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; diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx index 5d40fcbf3e0e..e5c4df4b9ff5 100644 --- a/include/editeng/splwrap.hxx +++ b/include/editeng/splwrap.hxx @@ -107,7 +107,7 @@ protected: virtual void SpellStart( SvxSpellArea eSpell ); // Preparing the area virtual void SpellContinue(); // Check Areas // Result available through GetLast - virtual void ReplaceAll( const OUString &rNewText, sal_Int16 nLanguage ); //Replace word from the replace list + virtual void ReplaceAll( const OUString &rNewText ); //Replace word from the replace list static css::uno::Reference< css::linguistic2::XDictionary > GetAllRightDic(); virtual void SpellEnd(); // Finish area _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits