summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 17:54:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 18:26:56 +0200
commitc22ecc18674a8f9f41afa9f6b1364989b18147d7 (patch)
tree446afb65f21734e61798520b3b9498805e01dabe /svgio
parent0d368642173fa93bb4cdab574423904530bc90a7 (diff)
loplugin:salunicodeliteral: svgio
Change-Id: I98461a30c14d3939e8fd5313a49aa478b39df1c3
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgnode.cxx4
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx8
-rw-r--r--svgio/source/svgreader/svgstylenode.cxx18
-rw-r--r--svgio/source/svgreader/svgtools.cxx32
4 files changed, 31 insertions, 31 deletions
diff --git a/svgio/source/svgreader/svgnode.cxx b/svgio/source/svgreader/svgnode.cxx
index 06304f193c72..15cb099537b0 100644
--- a/svgio/source/svgreader/svgnode.cxx
+++ b/svgio/source/svgreader/svgnode.cxx
@@ -92,8 +92,8 @@ namespace svgio
while(nPos < nLen)
{
const sal_Int32 nInitPos(nPos);
- copyToLimiter(rClassList, sal_Unicode(' '), nPos, aToken, nLen);
- skip_char(rClassList, sal_Unicode(' '), nPos, nLen);
+ copyToLimiter(rClassList, u' ', nPos, aToken, nLen);
+ skip_char(rClassList, u' ', nPos, nLen);
const OUString aPart(aToken.makeStringAndClear().trim());
if(aPart.getLength())
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index b10c90651969..f6d05d1411e4 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -178,7 +178,7 @@ namespace svgio
{
// get TokenName
OUStringBuffer aTokenName;
- skip_char(rCandidate, sal_Unicode(' '), nPos, nLen);
+ skip_char(rCandidate, u' ', nPos, nLen);
copyString(rCandidate, nPos, aTokenName, nLen);
if (aTokenName.isEmpty())
@@ -191,9 +191,9 @@ namespace svgio
// get TokenValue
OUStringBuffer aTokenValue;
- skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(':'), nPos, nLen);
- copyToLimiter(rCandidate, sal_Unicode(';'), nPos, aTokenValue, nLen);
- skip_char(rCandidate, sal_Unicode(' '), sal_Unicode(';'), nPos, nLen);
+ skip_char(rCandidate, u' ', u':', nPos, nLen);
+ copyToLimiter(rCandidate, u';', nPos, aTokenValue, nLen);
+ skip_char(rCandidate, u' ', u';', nPos, nLen);
if (aTokenValue.isEmpty())
{
diff --git a/svgio/source/svgreader/svgstylenode.cxx b/svgio/source/svgreader/svgstylenode.cxx
index 08b3eafd7bcc..c3ca2a5c540b 100644
--- a/svgio/source/svgreader/svgstylenode.cxx
+++ b/svgio/source/svgreader/svgstylenode.cxx
@@ -96,8 +96,8 @@ namespace svgio
while(nPos < nLen)
{
const sal_Int32 nInitPos(nPos);
- copyToLimiter(aSelectors, sal_Unicode(' '), nPos, aToken, nLen);
- skip_char(aSelectors, sal_Unicode(' '), nPos, nLen);
+ copyToLimiter(aSelectors, u' ', nPos, aToken, nLen);
+ skip_char(aSelectors, u' ', nPos, nLen);
const OUString aSelectorPart(aToken.makeStringAndClear().trim());
if(!aSelectorPart.isEmpty())
@@ -164,8 +164,8 @@ namespace svgio
while(nPos < nLen)
{
const sal_Int32 nInitPos(nPos);
- copyToLimiter(aSelectors, sal_Unicode(','), nPos, aToken, nLen);
- skip_char(aSelectors, sal_Unicode(' '), sal_Unicode(','), nPos, nLen);
+ copyToLimiter(aSelectors, u',', nPos, aToken, nLen);
+ skip_char(aSelectors, u' ', u',', nPos, nLen);
const OUString aSingleName(aToken.makeStringAndClear().trim());
@@ -196,9 +196,9 @@ namespace svgio
{
// read the full selectors (may be multiple, comma-separated)
const sal_Int32 nInitPos(nPos);
- skip_char(aSelectorsAndContent, sal_Unicode(' '), nPos, nLen);
- copyToLimiter(aSelectorsAndContent, sal_Unicode('{'), nPos, aToken, nLen);
- skip_char(aSelectorsAndContent, sal_Unicode(' '), sal_Unicode('{'), nPos, nLen);
+ skip_char(aSelectorsAndContent, u' ', nPos, nLen);
+ copyToLimiter(aSelectorsAndContent, u'{', nPos, aToken, nLen);
+ skip_char(aSelectorsAndContent, u' ', u'{', nPos, nLen);
const OUString aSelectors(aToken.makeStringAndClear().trim());
OUString aContent;
@@ -206,8 +206,8 @@ namespace svgio
if(!aSelectors.isEmpty() && nPos < nLen)
{
// isolate content as text, embraced by '{' and '}'
- copyToLimiter(aSelectorsAndContent, sal_Unicode('}'), nPos, aToken, nLen);
- skip_char(aSelectorsAndContent, sal_Unicode(' '), sal_Unicode('}'), nPos, nLen);
+ copyToLimiter(aSelectorsAndContent, u'}', nPos, aToken, nLen);
+ skip_char(aSelectorsAndContent, u' ', u'}', nPos, nLen);
aContent = aToken.makeStringAndClear().trim();
}
diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx
index d78a121447be..2f22d1966172 100644
--- a/svgio/source/svgreader/svgtools.cxx
+++ b/svgio/source/svgreader/svgtools.cxx
@@ -456,7 +456,7 @@ namespace svgio
switch(aCharA)
{
- case sal_Unicode('e') :
+ case u'e' :
{
if('m' == aCharB)
{
@@ -472,7 +472,7 @@ namespace svgio
}
break;
}
- case sal_Unicode('p') :
+ case u'p' :
{
if('x' == aCharB)
{
@@ -493,7 +493,7 @@ namespace svgio
}
break;
}
- case sal_Unicode('i') :
+ case u'i' :
{
if('n' == aCharB)
{
@@ -503,7 +503,7 @@ namespace svgio
}
break;
}
- case sal_Unicode('c') :
+ case u'c' :
{
if('m' == aCharB)
{
@@ -513,7 +513,7 @@ namespace svgio
}
break;
}
- case sal_Unicode('m') :
+ case u'm' :
{
if('m' == aCharB)
{
@@ -580,8 +580,8 @@ namespace svgio
switch(aChar)
{
- case sal_Unicode('g') :
- case sal_Unicode('G') :
+ case u'g' :
+ case u'G' :
{
if(rCandidate.matchIgnoreAsciiCase(aStrGrad, nPos))
{
@@ -591,8 +591,8 @@ namespace svgio
}
break;
}
- case sal_Unicode('r') :
- case sal_Unicode('R') :
+ case u'r' :
+ case u'R' :
{
if(rCandidate.matchIgnoreAsciiCase(aStrRad, nPos))
{
@@ -626,15 +626,15 @@ namespace svgio
{
if(nChar >= '0' && nChar <= '9')
{
- return sal_Int32(nChar - sal_Unicode('0'));
+ return sal_Int32(nChar - u'0');
}
else if(nChar >= 'A' && nChar <= 'F')
{
- return 10 + sal_Int32(nChar - sal_Unicode('A'));
+ return 10 + sal_Int32(nChar - u'A');
}
else if(nChar >= 'a' && nChar <= 'f')
{
- return 10 + sal_Int32(nChar - sal_Unicode('a'));
+ return 10 + sal_Int32(nChar - u'a');
}
else
{
@@ -1034,7 +1034,7 @@ namespace svgio
switch(aChar)
{
- case sal_Unicode('m') :
+ case u'm' :
{
if(rCandidate.match(aStrMatrix, nPos))
{
@@ -1088,7 +1088,7 @@ namespace svgio
}
break;
}
- case sal_Unicode('t') :
+ case u't' :
{
if(rCandidate.match(aStrTranslate, nPos))
{
@@ -1112,7 +1112,7 @@ namespace svgio
}
break;
}
- case sal_Unicode('s') :
+ case u's' :
{
if(rCandidate.match(aStrScale, nPos))
{
@@ -1166,7 +1166,7 @@ namespace svgio
}
break;
}
- case sal_Unicode('r') :
+ case u'r' :
{
if(rCandidate.match(aStrRotate, nPos))
{