tdf#158237 use c++20 contains() instead of find() and end()

Change-Id: I04bf1b916e5e64ab94ac0d91e3557fad925d465e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203432
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
OUBOUSKEN ILYAS
2026-04-23 07:13:01 +02:00
committed by Ilmari Lauhakangas
parent 2ede16f5ac
commit 7646e241f3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2143,7 +2143,7 @@ svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions() const
aPortion1.eLanguage = eLang;
aPortion1.sText = m_xEditEngine->GetText(ESelection(0, nStart, 0, aStart->nPosition));
bool bIsIgnoreError = m_aIgnoreErrorsAt.find( nStart ) != m_aIgnoreErrorsAt.end();
bool bIsIgnoreError = m_aIgnoreErrorsAt.contains( nStart );
if( bIsIgnoreError )
{
aPortion1.bIgnoreThisError = true;
+1 -1
View File
@@ -4988,7 +4988,7 @@ bool IsValidOOXMLFormula(std::u16string_view sFormula)
for (sal_Int16 i = 1; i < nSize; i++)
{
OUString sVal = strTokens[i];
if (builtInVariables.find(sVal) != builtInVariables.end())
if (builtInVariables.contains(sVal))
continue; // valid built-in variable
// TODO: recognize valid 'guide name' pointing to other equations or adjustments