summaryrefslogtreecommitdiff
path: root/unotools
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 /unotools
parentd2fa59e4025050c9b668ecff379d668f0db52639 (diff)
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configpaths.cxx4
-rw-r--r--unotools/source/config/fontcfg.cxx2
-rw-r--r--unotools/source/config/syslocaleoptions.cxx2
-rw-r--r--unotools/source/misc/datetime.cxx10
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx2
5 files changed, 10 insertions, 10 deletions
diff --git a/unotools/source/config/configpaths.cxx b/unotools/source/config/configpaths.cxx
index 7ff97d403f60..5dabd7f57e44 100644
--- a/unotools/source/config/configpaths.cxx
+++ b/unotools/source/config/configpaths.cxx
@@ -83,14 +83,14 @@ sal_Bool splitLastFromConfigurationPath(OUString const& _sInPath,
sal_Int32 nPos = _sInPath.getLength()-1;
// strip trailing slash
- if (nPos > 0 && _sInPath[ nPos ] == sal_Unicode('/'))
+ if (nPos > 0 && _sInPath[ nPos ] == '/')
{
OSL_FAIL("Invalid config path: trailing '/' is not allowed");
--nPos;
}
// check for predicate ['xxx'] or ["yyy"]
- if (nPos > 0 && _sInPath[ nPos ] == sal_Unicode(']'))
+ if (nPos > 0 && _sInPath[ nPos ] == ']')
{
sal_Unicode chQuote = _sInPath[--nPos];
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index a2859339d705..ba04027ead45 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -919,7 +919,7 @@ void FontSubstConfiguration::fillSubstVector( const com::sun::star::uno::Referen
// count tokens
while( nLength-- )
{
- if( *pStr++ == sal_Unicode(';') )
+ if( *pStr++ == ';' )
nTokens++;
}
rSubstVector.clear();
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx
index f266b4d637da..806d58e1eb03 100644
--- a/unotools/source/config/syslocaleoptions.cxx
+++ b/unotools/source/config/syslocaleoptions.cxx
@@ -692,7 +692,7 @@ OUString SvtSysLocaleOptions::CreateCurrencyConfigString(
{
OUStringBuffer aStr( rAbbrev.getLength() + 1 + aIsoStr.getLength() );
aStr.append( rAbbrev );
- aStr.append( sal_Unicode('-') );
+ aStr.append( '-' );
aStr.append( aIsoStr );
return aStr.makeStringAndClear();
}
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index cb6b6e1ac486..4c3f6df9fb4e 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -40,10 +40,10 @@ namespace
sal_Int32 nLen = rString.getLength();
// skip white space
- while( nPos < nLen && sal_Unicode(' ') == rString[nPos] )
+ while( nPos < nLen && ' ' == rString[nPos] )
nPos++;
- if( nPos < nLen && sal_Unicode('-') == rString[nPos] )
+ if( nPos < nLen && '-' == rString[nPos] )
{
bNeg = sal_True;
nPos++;
@@ -51,8 +51,8 @@ namespace
// get number
while( nPos < nLen &&
- sal_Unicode('0') <= rString[nPos] &&
- sal_Unicode('9') >= rString[nPos] )
+ '0' <= rString[nPos] &&
+ '9' >= rString[nPos] )
{
// TODO: check overflow!
rValue *= 10;
@@ -257,7 +257,7 @@ bool ISO8601parseDateTime(const OUString &rString, starutil::DateTime& rDateTime
rtl::OUString aDateStr, aTimeStr;
starutil::Date aDate;
starutil::Time aTime;
- sal_Int32 nPos = rString.indexOf( (sal_Unicode) 'T' );
+ sal_Int32 nPos = rString.indexOf( 'T' );
if ( nPos >= 0 )
{
aDateStr = rString.copy( 0, nPos );
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 86438df125c6..17dafaa2f114 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -61,7 +61,7 @@ struct TempFile_Impl
OUString getParentName( const OUString& aFileName )
{
- sal_Int32 lastIndex = aFileName.lastIndexOf( sal_Unicode('/') );
+ sal_Int32 lastIndex = aFileName.lastIndexOf( '/' );
OUString aParent = aFileName.copy( 0, lastIndex );
if( aParent.endsWith(":") && aParent.getLength() == 6 )