From 1820fcbbc38e82daf43ebe759200050ce05b3fe1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Jun 2019 12:30:40 +0200 Subject: constmethod for accessor-type methods Apply the constmethod plugin, but only to accessor-type methods, e.g. IsFoo(), GetBar(), etc, where we can be sure of that constifying is a reasonable thing to do. Change-Id: Ibc97f5f359a0992dd1ce2d66f0189f8a0a43d98a Reviewed-on: https://gerrit.libreoffice.org/74269 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/misc/svxacorr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editeng/source') diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 96d7c1561f27..bf3ac6349545 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2508,7 +2508,7 @@ bool SvxAutoCorrectLanguageLists::MakeCombinedChanges( std::vector xRemoved = pAutocorr_List->FindAndRemove( &aWordToAdd ); @@ -2692,7 +2692,7 @@ bool SvxAutocorrWordList::empty() const return mpImpl->maHash.empty() && mpImpl->maSortedVector.empty(); } -boost::optional SvxAutocorrWordList::FindAndRemove(SvxAutocorrWord *pWord) +boost::optional SvxAutocorrWordList::FindAndRemove(const SvxAutocorrWord *pWord) { if ( mpImpl->maSortedVector.empty() ) // use the hash -- cgit v1.2.3