summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-14 08:16:35 +0200
committerNoel Grandin <noel@peralex.com>2013-11-14 08:17:32 +0200
commitd366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch)
tree4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /basegfx/source
parentd2fa59e4025050c9b668ecff379d668f0db52639 (diff)
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/polygon/b2dsvgpolypolygon.cxx4
-rw-r--r--basegfx/source/tools/stringconversiontools.cxx28
2 files changed, 16 insertions, 16 deletions
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
index 46675643ae81..62e70144a3aa 100644
--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
@@ -674,11 +674,11 @@ namespace basegfx
if(a)
{
- aResult.append(sal_Unicode(' '));
+ aResult.append(' ');
}
::basegfx::internal::lcl_putNumberChar(aResult, aPoint.getX());
- aResult.append(sal_Unicode(','));
+ aResult.append(',');
::basegfx::internal::lcl_putNumberChar(aResult, aPoint.getY());
}
diff --git a/basegfx/source/tools/stringconversiontools.cxx b/basegfx/source/tools/stringconversiontools.cxx
index bc5cfb240745..211f8991d490 100644
--- a/basegfx/source/tools/stringconversiontools.cxx
+++ b/basegfx/source/tools/stringconversiontools.cxx
@@ -29,7 +29,7 @@ namespace basegfx
const sal_Int32 nLen)
{
while( io_rPos < nLen &&
- sal_Unicode(' ') == rStr[io_rPos] )
+ ' ' == rStr[io_rPos] )
{
++io_rPos;
}
@@ -40,7 +40,7 @@ namespace basegfx
const sal_Int32 nLen)
{
while(io_rPos < nLen
- && (sal_Unicode(' ') == rStr[io_rPos] || sal_Unicode(',') == rStr[io_rPos]))
+ && (' ' == rStr[io_rPos] || ',' == rStr[io_rPos]))
{
++io_rPos;
}
@@ -54,35 +54,35 @@ namespace basegfx
OUStringBuffer sNumberString;
bool separator_seen=false;
- if(sal_Unicode('+') == aChar || sal_Unicode('-') == aChar)
+ if('+' == aChar || '-' == aChar)
{
sNumberString.append(rStr[io_rPos]);
aChar = rStr[++io_rPos];
}
- while((sal_Unicode('0') <= aChar && sal_Unicode('9') >= aChar)
- || (!separator_seen && sal_Unicode('.') == aChar))
+ while(('0' <= aChar && '9' >= aChar)
+ || (!separator_seen && '.' == aChar))
{
- if (sal_Unicode('.') == aChar) separator_seen = true;
+ if ('.' == aChar) separator_seen = true;
sNumberString.append(rStr[io_rPos]);
io_rPos++;
aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0;
}
- if(sal_Unicode('e') == aChar || sal_Unicode('E') == aChar)
+ if('e' == aChar || 'E' == aChar)
{
sNumberString.append(rStr[io_rPos]);
io_rPos++;
aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0;
- if(sal_Unicode('+') == aChar || sal_Unicode('-') == aChar)
+ if('+' == aChar || '-' == aChar)
{
sNumberString.append(rStr[io_rPos]);
io_rPos++;
aChar = io_rPos < rStr.getLength() ? rStr[io_rPos] : 0;
}
- while(sal_Unicode('0') <= aChar && sal_Unicode('9') >= aChar)
+ while('0' <= aChar && '9' >= aChar)
{
sNumberString.append(rStr[io_rPos]);
io_rPos++;
@@ -94,8 +94,8 @@ namespace basegfx
{
rtl_math_ConversionStatus eStatus;
o_fRetval = ::rtl::math::stringToDouble( sNumberString.makeStringAndClear(),
- (sal_Unicode)('.'),
- (sal_Unicode)(','),
+ '.',
+ ',',
&eStatus,
NULL );
return ( eStatus == rtl_math_ConversionStatus_Ok );
@@ -124,12 +124,12 @@ namespace basegfx
{
sal_Unicode aChar( rStr[io_rPos] );
- if(sal_Unicode('0') == aChar)
+ if('0' == aChar)
{
o_nRetval = 0;
++io_rPos;
}
- else if (sal_Unicode('1') == aChar)
+ else if ('1' == aChar)
{
o_nRetval = 1;
++io_rPos;
@@ -156,7 +156,7 @@ namespace basegfx
if( lcl_isOnNumberChar(rStr[aLen - 1], false) &&
fValue >= 0.0 )
{
- rStr.append( sal_Unicode(' ') );
+ rStr.append( ' ' );
}
}