diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-06 14:34:21 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-06 19:21:56 +0100 |
commit | 40e98c878b6f6f205943da94d4b5e039231a482f (patch) | |
tree | b12806f4b6ee848ed20b788ab917e8d0668004d7 /editeng | |
parent | adfceaf32651f6ef17a9b63906366818b667d6b5 (diff) |
Drop comphelper::string::equals; compare OUString to OUStringChar
In cui/source/tabpages/autocdlg.cxx, use code point-based methods
for comparison with sal_UCS4 values in SvxSwAutoFormatFlags.
Change-Id: If34c981393774d1b8db649f0c29870e1ca6bdfe8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108847
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index d04247c397f2..e1a28403e40e 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -944,7 +944,7 @@ void SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc, // valid separator -> replace OUString sChar( *pWordStt ); sChar = rCC.titlecase(sChar); //see fdo#56740 - if (!comphelper::string::equals(sChar, *pWordStt)) + if (sChar != OUStringChar(*pWordStt)) rDoc.ReplaceRange( pWordStt - pStart, 1, sChar ); return; } |