summaryrefslogtreecommitdiff
path: root/vcl/source/control/field2.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-01-06 14:34:21 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-01-06 19:21:56 +0100
commit40e98c878b6f6f205943da94d4b5e039231a482f (patch)
treeb12806f4b6ee848ed20b788ab917e8d0668004d7 /vcl/source/control/field2.cxx
parentadfceaf32651f6ef17a9b63906366818b667d6b5 (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 'vcl/source/control/field2.cxx')
-rw-r--r--vcl/source/control/field2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index fc39b48de12d..7bf0afd853e8 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2240,12 +2240,12 @@ static bool ImplTimeProcessKeyInput( const KeyEvent& rKEvt,
if ( (nGroup == KEYGROUP_FKEYS) || (nGroup == KEYGROUP_CURSOR) ||
(nGroup == KEYGROUP_MISC) ||
((cChar >= '0') && (cChar <= '9')) ||
- string::equals(rLocaleDataWrapper.getTimeSep(), cChar) ||
+ rLocaleDataWrapper.getTimeSep() == OUStringChar(cChar) ||
(rLocaleDataWrapper.getTimeAM().indexOf(cChar) != -1) ||
(rLocaleDataWrapper.getTimePM().indexOf(cChar) != -1) ||
// Accept AM/PM:
(cChar == 'a') || (cChar == 'A') || (cChar == 'm') || (cChar == 'M') || (cChar == 'p') || (cChar == 'P') ||
- ((eFormat == TimeFieldFormat::F_SEC_CS) && string::equals(rLocaleDataWrapper.getTime100SecSep(), cChar)) ||
+ ((eFormat == TimeFieldFormat::F_SEC_CS) && rLocaleDataWrapper.getTime100SecSep() == OUStringChar(cChar)) ||
(bDuration && (cChar == '-')) )
return false;
else
@@ -2312,7 +2312,7 @@ bool TimeFormatter::TextToTime(const OUString& rStr, tools::Time& rTime, TimeFie
// Replace characters above by the separator character
for (sal_Int32 i = 0; i < aSepStr.getLength(); ++i)
{
- if (string::equals(rLocaleDataWrapper.getTimeSep(), aSepStr[i]))
+ if (rLocaleDataWrapper.getTimeSep() == OUStringChar(aSepStr[i]))
continue;
for ( sal_Int32 j = 0; j < aStr.getLength(); j++ )
{