diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-13 16:27:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:31 +0200 |
commit | c22ac891a3fa99908f0dcce730a83c34e7e9d7fa (patch) | |
tree | c0c706a44ef90022024afb4a97411a6f87381d76 /svgio | |
parent | 99a1f38156aefd7ac3e578ebea74e4bbecdc64dc (diff) |
remove unnecessary sal_Unicode casts in SVGIO module
Change-Id: Ie463f500bd8c5af37e99fb9e1a8d1fd5b2cd0766
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/source/svgreader/svgcharacternode.cxx | 4 | ||||
-rw-r--r-- | svgio/source/svgreader/svggradientnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgnode.cxx | 6 | ||||
-rw-r--r-- | svgio/source/svgreader/svgpatternnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgstyleattributes.cxx | 10 | ||||
-rw-r--r-- | svgio/source/svgreader/svgstylenode.cxx | 10 | ||||
-rw-r--r-- | svgio/source/svgreader/svgtextpathnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgtools.cxx | 158 | ||||
-rw-r--r-- | svgio/source/svgreader/svgtrefnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgusenode.cxx | 2 |
10 files changed, 99 insertions, 99 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx index a30a89c41ea1..392f886435f8 100644 --- a/svgio/source/svgreader/svgcharacternode.cxx +++ b/svgio/source/svgreader/svgcharacternode.cxx @@ -562,7 +562,7 @@ namespace svgio void SvgCharacterNode::addGap() { - maText += OUString(sal_Unicode(' ')); + maText += OUString(' '); } void SvgCharacterNode::concatenate(const OUString& rText) @@ -613,7 +613,7 @@ namespace svgio mfTextLength = rSvgTextPositions.getTextLength().solve(rInfoProvider, length); } - // SVG does not really define in which units a rotate for Text/TSpan is given, + // SVG does not really define in which units a \91rotate\92 for Text/TSpan is given, // but it seems to be degrees. Convert here to radians if(!maRotate.empty()) { diff --git a/svgio/source/svgreader/svggradientnode.cxx b/svgio/source/svgreader/svggradientnode.cxx index b13971a776a3..eab2d1274643 100644 --- a/svgio/source/svgreader/svggradientnode.cxx +++ b/svgio/source/svgreader/svggradientnode.cxx @@ -230,7 +230,7 @@ namespace svgio { const sal_Int32 nLen(aContent.getLength()); - if(nLen && sal_Unicode('#') == aContent[0]) + if(nLen && '#' == aContent[0]) { maXLink = aContent.copy(1); tryToFindLink(); diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx index 8e8f83d345a2..128bccb21cc7 100644 --- a/svgio/source/svgreader/svgnode.cxx +++ b/svgio/source/svgreader/svgnode.cxx @@ -51,14 +51,14 @@ namespace svgio sal_Int32 nPos(0); const SvgStyleAttributes* pNew = 0; - skip_char(*pClassList, sal_Unicode(' '), nPos, nLen); + skip_char(*pClassList, ' ', nPos, nLen); while(nPos < nLen) { rtl::OUStringBuffer aTokenValue; - copyToLimiter(*pClassList, sal_Unicode(' '), nPos, aTokenValue, nLen); - skip_char(*pClassList, sal_Unicode(' '), nPos, nLen); + copyToLimiter(*pClassList, ' ', nPos, aTokenValue, nLen); + skip_char(*pClassList, ' ', nPos, nLen); rtl::OUString aId(rtl::OUString::createFromAscii(".")); const rtl::OUString aOUTokenValue(aTokenValue.makeStringAndClear()); diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx index c743caa8e175..f4c7342aefbb 100644 --- a/svgio/source/svgreader/svgpatternnode.cxx +++ b/svgio/source/svgreader/svgpatternnode.cxx @@ -189,7 +189,7 @@ namespace svgio { const sal_Int32 nLen(aContent.getLength()); - if(nLen && sal_Unicode('#') == aContent[0]) + if(nLen && '#' == aContent[0]) { maXLink = aContent.copy(1); tryToFindLink(); diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 0e8be846a6fc..ecddfbf3a5e9 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -179,16 +179,16 @@ namespace svgio while(nPos < nLen) { const sal_Int32 nInitPos(nPos); - skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); + skip_char(rCandidate, ' ', nPos, nLen); OUStringBuffer aTokenName; copyString(rCandidate, nPos, aTokenName, nLen); if(!aTokenName.isEmpty()) { - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(':'), nPos, nLen); + skip_char(rCandidate, ' ', ':', nPos, nLen); OUStringBuffer aTokenValue; - copyToLimiter(rCandidate, sal_Unicode(';'), nPos, aTokenValue, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(';'), nPos, nLen); + copyToLimiter(rCandidate, ';', nPos, aTokenValue, nLen); + skip_char(rCandidate, ' ', ';', nPos, nLen); const OUString aOUTokenName(aTokenName.makeStringAndClear()); const OUString aOUTokenValue(aTokenValue.makeStringAndClear()); @@ -2244,7 +2244,7 @@ namespace svgio if(maFontSize.isSet()) { // #122524# Handle Unit_percent realtive to parent FontSize (see SVG1.1 - // spec 10.10 Font selection properties font-size, lastline (klick 'normative + // spec 10.10 Font selection properties \91font-size\92, lastline (klick 'normative // definition of the property') if(Unit_percent == maFontSize.getUnit()) { diff --git a/svgio/source/svgreader/svgstylenode.cxx b/svgio/source/svgreader/svgstylenode.cxx index 8ee7aaf8ede2..6c20df941fcb 100644 --- a/svgio/source/svgreader/svgstylenode.cxx +++ b/svgio/source/svgreader/svgstylenode.cxx @@ -84,15 +84,15 @@ namespace svgio while(nPos < nLen) { const sal_Int32 nInitPos(nPos); - skip_char(aContent, sal_Unicode(' '), sal_Unicode('#'), nPos, nLen); - copyToLimiter(aContent, sal_Unicode('{'), nPos, aTokenValue, nLen); + skip_char(aContent, ' ', '#', nPos, nLen); + copyToLimiter(aContent, '{', nPos, aTokenValue, nLen); const OUString aStyleName = aTokenValue.makeStringAndClear().trim(); if(!aStyleName.isEmpty() && nPos < nLen) { - skip_char(aContent, sal_Unicode(' '), sal_Unicode('{'), nPos, nLen); - copyToLimiter(aContent, sal_Unicode('}'), nPos, aTokenValue, nLen); - skip_char(aContent, sal_Unicode(' '), sal_Unicode('}'), nPos, nLen); + skip_char(aContent, ' ', '{', nPos, nLen); + copyToLimiter(aContent, '}', nPos, aTokenValue, nLen); + skip_char(aContent, ' ', '}', nPos, nLen); const OUString aStyleContent = aTokenValue.makeStringAndClear().trim(); if(!aStyleContent.isEmpty()) diff --git a/svgio/source/svgreader/svgtextpathnode.cxx b/svgio/source/svgreader/svgtextpathnode.cxx index 7738fac18b07..8e09a84c3c96 100644 --- a/svgio/source/svgreader/svgtextpathnode.cxx +++ b/svgio/source/svgreader/svgtextpathnode.cxx @@ -338,7 +338,7 @@ namespace svgio { const sal_Int32 nLen(aContent.getLength()); - if(nLen && sal_Unicode('#') == aContent[0]) + if(nLen && '#' == aContent[0]) { maXLink = aContent.copy(1); } diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx index 8b5454dfeb2f..a24599a7559f 100644 --- a/svgio/source/svgreader/svgtools.cxx +++ b/svgio/source/svgreader/svgtools.cxx @@ -307,7 +307,7 @@ namespace svgio { const sal_Unicode aChar(rCandidate[nPos]); - if(sal_Unicode('+') == aChar || sal_Unicode('-') == aChar) + if('+' == aChar || '-' == aChar) { rTarget.append(aChar); nPos++; @@ -323,7 +323,7 @@ namespace svgio { const sal_Unicode aChar(rCandidate[nPos]); - bOnNumber = (sal_Unicode('0') <= aChar && sal_Unicode('9') >= aChar) || sal_Unicode('.') == aChar; + bOnNumber = ('0' <= aChar && '9' >= aChar) || '.' == aChar; if(bOnNumber) { @@ -341,9 +341,9 @@ namespace svgio { const sal_Unicode aChar(rCandidate[nPos]); - bOnHex = (sal_Unicode('0') <= aChar && sal_Unicode('9') >= aChar) - || (sal_Unicode('A') <= aChar && sal_Unicode('F') >= aChar) - || (sal_Unicode('a') <= aChar && sal_Unicode('f') >= aChar); + bOnHex = ('0' <= aChar && '9' >= aChar) + || ('A' <= aChar && 'F' >= aChar) + || ('a' <= aChar && 'f' >= aChar); if(bOnHex) { @@ -361,9 +361,9 @@ namespace svgio { const sal_Unicode aChar(rCandidate[nPos]); - bOnChar = (sal_Unicode('a') <= aChar && sal_Unicode('z') >= aChar) - || (sal_Unicode('A') <= aChar && sal_Unicode('Z') >= aChar) - || sal_Unicode('-') == aChar; + bOnChar = ('a' <= aChar && 'z' >= aChar) + || ('A' <= aChar && 'Z' >= aChar) + || '-' == aChar; if(bOnChar) { @@ -395,7 +395,7 @@ namespace svgio { const sal_Unicode aChar(rCandidate[nPos]); - if(sal_Unicode('e') == aChar || sal_Unicode('E') == aChar) + if('e' == aChar || 'E' == aChar) { // try to read exponential number, but be careful. I had // a case where dx="2em" was used, thus the 'e' was consumed @@ -424,7 +424,7 @@ namespace svgio rtl_math_ConversionStatus eStatus; fNum = rtl::math::stringToDouble( - aNum.makeStringAndClear(), (sal_Unicode)('.'), (sal_Unicode)(','), + aNum.makeStringAndClear(), '.', ',', &eStatus, 0); return eStatus == rtl_math_ConversionStatus_Ok; @@ -451,13 +451,13 @@ namespace svgio { case sal_Unicode('e') : { - if(sal_Unicode('m') == aCharB) + if('m' == aCharB) { // 'em' Relative to current font size aRetval = Unit_em; bTwoCharValid = true; } - else if(sal_Unicode('x') == aCharB) + else if('x' == aCharB) { // 'ex' Relative to current font x-height aRetval = Unit_ex; @@ -467,18 +467,18 @@ namespace svgio } case sal_Unicode('p') : { - if(sal_Unicode('x') == aCharB) + if('x' == aCharB) { // 'px' UserUnit (default) bTwoCharValid = true; } - else if(sal_Unicode('t') == aCharB) + else if('t' == aCharB) { // 'pt' == 1.25 px aRetval = Unit_pt; bTwoCharValid = true; } - else if(sal_Unicode('c') == aCharB) + else if('c' == aCharB) { // 'pc' == 15 px aRetval = Unit_pc; @@ -488,7 +488,7 @@ namespace svgio } case sal_Unicode('i') : { - if(sal_Unicode('n') == aCharB) + if('n' == aCharB) { // 'in' == 90 px aRetval = Unit_in; @@ -498,7 +498,7 @@ namespace svgio } case sal_Unicode('c') : { - if(sal_Unicode('m') == aCharB) + if('m' == aCharB) { // 'cm' == 35.43307 px aRetval = Unit_cm; @@ -508,7 +508,7 @@ namespace svgio } case sal_Unicode('m') : { - if(sal_Unicode('m') == aCharB) + if('m' == aCharB) { // 'mm' == 3.543307 px aRetval = Unit_mm; @@ -525,7 +525,7 @@ namespace svgio } else { - if(sal_Unicode('%') == aCharA) + if('%' == aCharA) { // percent used, relative to current nPos++; @@ -543,7 +543,7 @@ namespace svgio if(readNumber(rCandidate, nPos, fNum, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); + skip_char(rCandidate, ' ', nPos, nLen); aNum = SvgNumber(fNum, readUnit(rCandidate, nPos, nLen)); return true; @@ -556,7 +556,7 @@ namespace svgio { if(readNumber(rCandidate, nPos, fAngle, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); + skip_char(rCandidate, ' ', nPos, nLen); enum DegreeType { @@ -617,15 +617,15 @@ namespace svgio sal_Int32 read_hex(const sal_Unicode& rChar) { - if(rChar >= sal_Unicode('0') && rChar <=sal_Unicode('9')) + if(rChar >= '0' && rChar <= '9') { return sal_Int32(rChar - sal_Unicode('0')); } - else if(rChar >= sal_Unicode('A') && rChar <=sal_Unicode('F')) + else if(rChar >= 'A' && rChar <= 'F') { return 10 + sal_Int32(rChar - sal_Unicode('A')); } - else if(rChar >= sal_Unicode('a') && rChar <=sal_Unicode('f')) + else if(rChar >= 'a' && rChar <= 'f') { return 10 + sal_Int32(rChar - sal_Unicode('a')); } @@ -818,7 +818,7 @@ namespace svgio const sal_Unicode aChar(rCandidate[0]); const double fFactor(1.0 / 255.0); - if(aChar == sal_Unicode('#')) + if(aChar == '#') { // hex definition OUStringBuffer aNum; @@ -863,25 +863,25 @@ namespace svgio { // rgb definition sal_Int32 nPos(aStrRgb.getLength()); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); + skip_char(rCandidate, ' ', '(', nPos, nLen); double fR(0.0); if(readNumber(rCandidate, nPos, fR, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); + skip_char(rCandidate, ' ', nPos, nLen); if(nPos < nLen) { const sal_Unicode aPercentChar(rCandidate[nPos]); - const bool bIsPercent(sal_Unicode('%') == aPercentChar); + const bool bIsPercent('%' == aPercentChar); double fG(0.0); if(bIsPercent) { - skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); + skip_char(rCandidate, '%', nPos, nLen); } - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumber(rCandidate, nPos, fG, nLen)) { @@ -889,10 +889,10 @@ namespace svgio if(bIsPercent) { - skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); + skip_char(rCandidate, '%', nPos, nLen); } - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumber(rCandidate, nPos, fB, nLen)) { @@ -904,10 +904,10 @@ namespace svgio if(bIsPercent) { - skip_char(rCandidate, sal_Unicode('%'), nPos, nLen); + skip_char(rCandidate, '%', nPos, nLen); } - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); + skip_char(rCandidate, ' ', ')', nPos, nLen); return true; } } @@ -936,22 +936,22 @@ namespace svgio { sal_Int32 nPos(0); SvgNumber aMinX; - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aMinX, nLen)) { SvgNumber aMinY; - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aMinY, nLen)) { SvgNumber aWidth; - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aWidth, nLen)) { SvgNumber aHeight; - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aHeight, nLen)) { @@ -977,7 +977,7 @@ namespace svgio if(nLen) { sal_Int32 nPos(0); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); while(nPos < nLen) { @@ -998,40 +998,40 @@ namespace svgio { // matrix element nPos += aStrMatrix.getLength(); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); + skip_char(rCandidate, ' ', '(', nPos, nLen); SvgNumber aVal; basegfx::B2DHomMatrix aNew; if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) { aNew.set(0, 0, aVal.solve(rInfoProvider)); // Element A - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) { aNew.set(1, 0, aVal.solve(rInfoProvider)); // Element B - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) { aNew.set(0, 1, aVal.solve(rInfoProvider)); // Element C - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) { aNew.set(1, 1, aVal.solve(rInfoProvider)); // Element D - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) { aNew.set(0, 2, aVal.solve(rInfoProvider, xcoordinate)); // Element E - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); if(readNumberAndUnit(rCandidate, nPos, aVal, nLen)) { aNew.set(1, 2, aVal.solve(rInfoProvider, ycoordinate)); // Element F - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ')', nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); // caution: String is evaluated from left to right, but matrix multiplication // in SVG is right to left, so put the new transformation before the current @@ -1052,16 +1052,16 @@ namespace svgio { // translate element nPos += aStrTranslate.getLength(); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); + skip_char(rCandidate, ' ', '(', nPos, nLen); SvgNumber aTransX; if(readNumberAndUnit(rCandidate, nPos, aTransX, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); SvgNumber aTransY; readNumberAndUnit(rCandidate, nPos, aTransY, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ')', nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); aMatrix = aMatrix * basegfx::tools::createTranslateB2DHomMatrix( aTransX.solve(rInfoProvider, xcoordinate), @@ -1076,16 +1076,16 @@ namespace svgio { // scale element nPos += aStrScale.getLength(); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); + skip_char(rCandidate, ' ', '(', nPos, nLen); SvgNumber aScaleX; if(readNumberAndUnit(rCandidate, nPos, aScaleX, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); SvgNumber aScaleY(aScaleX); readNumberAndUnit(rCandidate, nPos, aScaleY, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ')', nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); aMatrix = aMatrix * basegfx::tools::createScaleB2DHomMatrix( aScaleX.solve(rInfoProvider), @@ -1096,13 +1096,13 @@ namespace svgio { // skewx element nPos += aStrSkewX.getLength(); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); + skip_char(rCandidate, ' ', '(', nPos, nLen); double fSkewX(0.0); if(readAngle(rCandidate, nPos, fSkewX, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ')', nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); aMatrix = aMatrix * basegfx::tools::createShearXB2DHomMatrix(tan(fSkewX)); } @@ -1111,13 +1111,13 @@ namespace svgio { // skewy element nPos += aStrSkewY.getLength(); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); + skip_char(rCandidate, ' ', '(', nPos, nLen); double fSkewY(0.0); if(readAngle(rCandidate, nPos, fSkewY, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ')', nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); aMatrix = aMatrix * basegfx::tools::createShearYB2DHomMatrix(tan(fSkewY)); } @@ -1130,19 +1130,19 @@ namespace svgio { // rotate element nPos += aStrRotate.getLength(); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode('('), nPos, nLen); + skip_char(rCandidate, ' ', '(', nPos, nLen); double fAngle(0.0); if(readAngle(rCandidate, nPos, fAngle, nLen)) { - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); SvgNumber aX; readNumberAndUnit(rCandidate, nPos, aX, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); SvgNumber aY; readNumberAndUnit(rCandidate, nPos, aY, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(')'), nPos, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ')', nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); const double fX(aX.isSet() ? aX.solve(rInfoProvider, xcoordinate) : 0.0); const double fY(aY.isSet() ? aY.solve(rInfoProvider, ycoordinate) : 0.0); @@ -1191,9 +1191,9 @@ namespace svgio const sal_Int32 nLen(rCandidate.getLength()); sal_Int32 nPos(aStrUrl.getLength()); - skip_char(rCandidate, sal_Unicode('('), sal_Unicode('#'), nPos, nLen); + skip_char(rCandidate, '(', '#', nPos, nLen); OUStringBuffer aTokenValue; - copyToLimiter(rCandidate, sal_Unicode(')'), nPos, aTokenValue, nLen); + copyToLimiter(rCandidate, ')', nPos, aTokenValue, nLen); rURL = aTokenValue.makeStringAndClear(); return true; @@ -1248,12 +1248,12 @@ namespace svgio { sal_Int32 nPos(0); SvgNumber aNum; - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); while(readNumberAndUnit(rCandidate, nPos, aNum, nLen)) { rSvgNumberVector.push_back(aNum); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); } return !rSvgNumberVector.empty(); @@ -1277,7 +1277,7 @@ namespace svgio while(nPos < nLen) { const sal_Int32 nInitPos(nPos); - skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); + skip_char(rCandidate, ' ', nPos, nLen); OUStringBuffer aTokenName; copyString(rCandidate, nPos, aTokenName, nLen); @@ -1395,12 +1395,12 @@ namespace svgio { sal_Int32 nPos(0); OUStringBuffer aTokenValue; - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(rCandidate, ' ', ',', nPos, nLen); while(nPos < nLen) { - copyToLimiter(rCandidate, sal_Unicode(','), nPos, aTokenValue, nLen); - skip_char(rCandidate, sal_Unicode(','), sal_Unicode(' '), nPos, nLen); + copyToLimiter(rCandidate, ',', nPos, aTokenValue, nLen); + skip_char(rCandidate, ',', ' ', nPos, nLen); const OUString aString = aTokenValue.makeStringAndClear(); if(!aString.isEmpty()) @@ -1417,7 +1417,7 @@ namespace svgio { rXLink = rUrl = rMimeType = rData = OUString(); - if(sal_Unicode('#') == rCandidate[0]) + if('#' == rCandidate[0]) { // local link rXLink = rCandidate.copy(1); @@ -1434,9 +1434,9 @@ namespace svgio OUStringBuffer aBuffer; // read mime type - skip_char(rCandidate, sal_Unicode(' '), nPos, nLen); - copyToLimiter(rCandidate, sal_Unicode(';'), nPos, aBuffer, nLen); - skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(';'), nPos, nLen); + skip_char(rCandidate, ' ', nPos, nLen); + copyToLimiter(rCandidate, ';', nPos, aBuffer, nLen); + skip_char(rCandidate, ' ', ';', nPos, nLen); rMimeType = aBuffer.makeStringAndClear(); if(!rMimeType.isEmpty() && nPos < nLen) @@ -1455,7 +1455,7 @@ namespace svgio nPos = aStrBase64.getLength(); nLen = aData.getLength(); - skip_char(aData, sal_Unicode(' '), sal_Unicode(','), nPos, nLen); + skip_char(aData, ' ', ',', nPos, nLen); if(nPos < nLen) { diff --git a/svgio/source/svgreader/svgtrefnode.cxx b/svgio/source/svgreader/svgtrefnode.cxx index 98563bc01336..332f7ed879d5 100644 --- a/svgio/source/svgreader/svgtrefnode.cxx +++ b/svgio/source/svgreader/svgtrefnode.cxx @@ -64,7 +64,7 @@ namespace svgio { const sal_Int32 nLen(aContent.getLength()); - if(nLen && sal_Unicode('#') == aContent[0]) + if(nLen && '#' == aContent[0]) { maXLink = aContent.copy(1); } diff --git a/svgio/source/svgreader/svgusenode.cxx b/svgio/source/svgreader/svgusenode.cxx index b545c7a7b636..ef8e417eef92 100644 --- a/svgio/source/svgreader/svgusenode.cxx +++ b/svgio/source/svgreader/svgusenode.cxx @@ -127,7 +127,7 @@ namespace svgio { const sal_Int32 nLen(aContent.getLength()); - if(nLen && sal_Unicode('#') == aContent[0]) + if(nLen && '#' == aContent[0]) { maXLink = aContent.copy(1); } |