summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-10-04 12:02:14 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2019-10-04 17:20:20 +0200
commit5b8625bd88c5c23e5b7be1245737b6a2ac08c373 (patch)
tree383e45a537ceb3897ee18251f839dbd32df8b146 /editeng
parent957a4d7f894e2339254c97f33f40436bf266917e (diff)
SvxAutoCorrect::GetPrevAutoCorrWord should not be const
Change-Id: Icc5f8eae4347e097f7ff22212dd94467d0702353 Reviewed-on: https://gerrit.libreoffice.org/80198 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index bf3ac6349545..52098a3f0334 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1550,7 +1550,7 @@ bool SvxAutoCorrect::AddWrtSttException( const OUString& rNew,
bool SvxAutoCorrect::GetPrevAutoCorrWord( SvxAutoCorrDoc const & rDoc,
const OUString& rTxt, sal_Int32 nPos,
- OUString& rWord ) const
+ OUString& rWord )
{
if( !nPos )
return false;
@@ -1581,8 +1581,7 @@ bool SvxAutoCorrect::GetPrevAutoCorrWord( SvxAutoCorrDoc const & rDoc,
const LanguageType eLang = GetDocLanguage( rDoc, nCapLttrPos );
- SvxAutoCorrect* pThis = const_cast<SvxAutoCorrect*>(this);
- CharClass& rCC = pThis->GetCharClass( eLang );
+ CharClass& rCC = GetCharClass(eLang);
if( lcl_IsSymbolChar( rCC, rTxt, nCapLttrPos, nEnde ))
return false;