diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-05-28 19:41:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-17 11:55:13 +0200 |
commit | 9881bea8d41997fb46579eb5f0314300159c96cc (patch) | |
tree | f52daa7055d2d28959e2d1ad576d963b7c0d3b2d /sc | |
parent | ec4034c4a4f23574401ba2a74b635d9ed4befbc8 (diff) |
remove unnecessary use of OUString::getStr
Change-Id: I3d13e1c0bb6aa4a7aacc463198747c1368ebc9b4
Reviewed-on: https://gerrit.libreoffice.org/38114
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index dcd9f1e58280..ee2bd8034a17 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -4043,7 +4043,7 @@ void ScCompiler::AutoCorrectParsedSymbol() OUString aOld( aRef[j] ); OUString aStr2; const sal_Unicode* p = aRef[j].getStr(); - while ( *p && CharClass::isAsciiNumeric( OUString(*p) ) ) + while ( *p && rtl::isAsciiDigit( *p ) ) aStr2 += OUStringLiteral1(*p++); aRef[j] = OUString( p ); aRef[j] += aStr2; diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index f6f7ab9a552c..8a97aa949afb 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -3111,12 +3111,7 @@ void flushParagraph( { const editeng::Section& rSec = *it; - const sal_Unicode* pBeg = rParaText.getStr(); - std::advance(pBeg, rSec.mnStart); - const sal_Unicode* pEnd = pBeg; - std::advance(pEnd, rSec.mnEnd-rSec.mnStart); - - OUString aContent(pBeg, pEnd-pBeg); + OUString aContent(rParaText.copy(rSec.mnStart, rSec.mnEnd - rSec.mnStart)); std::vector<XMLPropertyState> aPropStates; const SvxFieldData* pField = toXMLPropertyStates(aPropStates, rSec.maAttributes, xMapper, rAttrMap); |