diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:55:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:56 +0200 |
commit | 740cf511036cdf881a521a79218d3dcc29422db3 (patch) | |
tree | 9eaa8ec35c47e144dc5dac59ef438bd46a0100e6 /starmath/source/mathmlattr.cxx | |
parent | c22ecc18674a8f9f41afa9f6b1364989b18147d7 (diff) |
loplugin:salunicodeliteral: starmath
Change-Id: Ic02e71ccb2d5fe2e3505853c6e164f17e26361b2
Diffstat (limited to 'starmath/source/mathmlattr.cxx')
-rw-r--r-- | starmath/source/mathmlattr.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/mathmlattr.cxx b/starmath/source/mathmlattr.cxx index 0c39c3e2862e..fd7bf378724c 100644 --- a/starmath/source/mathmlattr.cxx +++ b/starmath/source/mathmlattr.cxx @@ -34,14 +34,14 @@ sal_Int32 ParseMathMLUnsignedNumber(const OUString &rStr, Fraction *pUN) for (nIdx = 0; nIdx < nLen; nIdx++) { auto cD = rStr[nIdx]; - if (cD == sal_Unicode('.')) + if (cD == u'.') { if (nDecimalPoint >= 0) return -1; nDecimalPoint = nIdx; continue; } - if (cD < sal_Unicode('0') || sal_Unicode('9') < cD) + if (cD < u'0' || u'9' < cD) break; } if (nIdx == 0 || (nIdx == 1 && nDecimalPoint == 0)) @@ -72,7 +72,7 @@ sal_Int32 ParseMathMLNumber(const OUString &rStr, Fraction *pN) assert(pN); if (rStr.isEmpty()) return -1; - bool bNegative = (rStr[0] == sal_Unicode('-')); + bool bNegative = (rStr[0] == '-'); sal_Int32 nOffset = bNegative ? 1 : 0; Fraction aF; auto nIdx = ParseMathMLUnsignedNumber(rStr.copy(nOffset), &aF); @@ -137,7 +137,7 @@ sal_Int32 ParseMathMLAttributeLengthValue(const OUString &rStr, MathMLAttributeL pV->eUnit = MathMLLengthUnit::Pc; return nIdx + 2; } - if (sRest[0] == sal_Unicode('%')) + if (sRest[0] == u'%') { pV->eUnit = MathMLLengthUnit::Percent; return nIdx + 2; |