diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-08-12 22:43:40 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-09-09 21:07:52 +0200 |
commit | 416bedb92a3e4f57f3da243e8befd42e1be101a1 (patch) | |
tree | 36ed9e80c2fdda9dd7a90ae76f6c82abaf050815 /sc | |
parent | e2821c569e720ecf85e3773b9e411f8297301827 (diff) |
Avoid getTokenCount
Change-Id: If9720800a5118d29b1d5d57aa06c21dd4db5b511
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index e86e2d756e78..64622c674301 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -3942,13 +3942,13 @@ void ScCompiler::AutoCorrectParsedSymbol() else if ( (GetCharTableFlags( c1, 0 ) & ScCharFlags::CharValue) && (GetCharTableFlags( c2, c2p ) & ScCharFlags::CharValue) ) { - if ( comphelper::string::getTokenCount(aCorrectedSymbol, cx) > 1 ) + if ( aCorrectedSymbol.indexOf(cx) >= 0 ) // At least two tokens separated by cx { // x => * sal_Unicode c = mxSymbols->getSymbolChar(ocMul); aCorrectedSymbol = aCorrectedSymbol.replaceAll(OUStringLiteral1(cx), OUStringLiteral1(c)); bCorrected = true; } - if ( comphelper::string::getTokenCount(aCorrectedSymbol, cX) > 1 ) + if ( aCorrectedSymbol.indexOf(cX) >= 0 ) // At least two tokens separated by cX { // X => * sal_Unicode c = mxSymbols->getSymbolChar(ocMul); aCorrectedSymbol = aCorrectedSymbol.replaceAll(OUStringLiteral1(cX), OUStringLiteral1(c)); |