diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-14 08:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:32 +0200 |
commit | d366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch) | |
tree | 4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /unotools/source/misc | |
parent | d2fa59e4025050c9b668ecff379d668f0db52639 (diff) |
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'unotools/source/misc')
-rw-r--r-- | unotools/source/misc/datetime.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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 ); |